t tasks from database
        var tasksInDatabase = await UsingDbContextAsync(async dbContext =&gt;
        {
            return await dbContext.Tasks
                .Where(t =&gt; t.State == TaskState.Open)
                .ToListAsync();
        });

        //Parse HTML response to check if tasks in the database are returned
        var document = new HtmlParser().Parse(response);
        var listItems = document.QuerySelectorAll(&quot;#TaskList li&quot;);
            
        //Check task count
       