public void TestExecuteDataSource() { _petFetcher.GetAllPetsByOwnerGender(); _mocker.GetMock <IDataSource>() .Verify(p => p.GetApiResponseString(), Times.Once); }
public ActionResult Index() { var petFetcher = new PetFetcher(_dataSource, _personService, _petService); return(View(petFetcher.GetAllPetsByOwnerGender())); }