public void Get_Paged_With_Breed_Returns_Correct_Search_Description() { // arrange const int breedId = 3; const int page = 2; const int pageSize = 5; var dogsList = new DogSearchResultsListBuilder().ListOf14Beagels().Build(); _dogSearchhelper.Stub(x => x.GetDogsByBreed(breedId)).Return(dogsList); _dogSearchhelper.Stub(x => x.ApplyDogLocationFilteringAndSorting(Arg<IQueryable<Dog>>.Is.Anything, Arg<int>.Is.Anything, Arg<string>.Is.Anything, Arg<int>.Is.Anything)).Return(dogsList); var dogsController = new DogsController(_dogsRepository, _breedsRepository, _unitofWork, _dogSearchhelper, _configuration, _placesRepository); //act var result = dogsController.GetPagedByBreed(page, pageSize, breedId, SearchSortOptions.PRICE_HIGHEST); Assert.That(result.SearchDescription, Is.EqualTo("Showing results 6 to 10 out of 14 results for Beagel nationwide")); }