public void Init() { _searchViewModel = MockRepository.GenerateMock<SearchViewModel>(); _searchRepository = MockRepository.GenerateMock<ISearchAPIFacade>(); _contactInformation = MockRepository.GenerateMock<ContactInformation>(); _searchRepository.Stub(x => x.GetBreeds()).Return(breedsList); _homeController = new HomeController(_searchViewModel, _searchRepository, _contactInformation); }
public HomeController(SearchViewModel searchViewModel, ISearchAPIFacade searchRepository, ContactInformation contactInformation) { _searchViewModel = searchViewModel; _searchRepository = searchRepository; _contactInformation = contactInformation; }