TaskState.Completed }
            );</strong>
    }
}</pre>

<p>You can see the sample project&#39;s source code to understand where and how TestDataBuilder is used. I added two tasks (one of them is completed) to the dbcontext. So, I can write my tests assuming that there are two Tasks in the database. My first integration test tests the TaskAppService.GetAll method we created above.</p>

<pre lang="cs">
public class TaskAppService_Tests : SimpleTaskAppTestBase
{
    private readonly ITaskAppService _taskA