public async Task DeleteTask() { var sut = new DeleteTaskCommandHandler(Context); await sut.Handle(new DeleteTaskCommand { TaskId = TaskId }); Assert.False(Context.Tasks.Any(t => t.Id == TaskId)); } }