コード例 #1
0
        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);
        }
コード例 #2
0
 public HomeController(SearchViewModel searchViewModel, ISearchAPIFacade searchRepository, ContactInformation contactInformation)
 {
     _searchViewModel = searchViewModel;
     _searchRepository = searchRepository;
     _contactInformation = contactInformation;
 }