public async Task ListShouldNotBeEmpty() { var handler = new GetTodosListQueryHandler(_context); var result = await handler.Handle(new GetTodosListQuery(), CancellationToken.None); result.Todos.Count.ShouldBe(3); }
public async Task GetTodosListTest() { var handler = new GetTodosListQueryHandler(_context); var result = await handler.Handle(new GetTodosListQuery(), CancellationToken.None); result.ShouldBeOfType <TodoListModel>(); }