public async Task TestGetAllTodoItemsAsync() { // Arrange var dbContext = DbContextMocker.GetTodoDbContext(); var todoService = new TodoService(dbContext); // Act var items = todoService.GetAllTodoItems(); dbContext.Dispose(); // Assert Assert.Single(items); }