public async Task it_should_find_an_existing_courses_counter() { CoursesCounter counter = CoursesCounterMother.Random(); CoursesCounterResponse response = CoursesCounterResponseMother.Create(counter.Total.Value); ShouldSearch(counter); Assert.Equal(response, await _finder.Find()); }
public async Task it_should_find_an_existing_courses_counter() { CoursesCounter counter = CoursesCounterMother.Random(); FindCoursesCounterQuery query = new FindCoursesCounterQuery(); CoursesCounterResponse response = CoursesCounterResponseMother.Create(counter.Total.Value); ShouldSearch(counter); Assert.Equal(response, await _handler.Handle(query)); }