Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
        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));
        }