Ejemplo n.º 1
0
        public void MockInitialize()
        {
            _repo = new MockHostsRepo();
            Profiles            profile       = new Profiles();
            MapperConfiguration configuration = new MapperConfiguration(cfg => cfg.AddProfile(profile));

            _controller = new SearchController(_repo, new Mapper(configuration));
        }
Ejemplo n.º 2
0
        public void MockInitialize()
        {
            _reservationsRepo = new MockReservationsRepo();
            _hostsRepo        = new MockHostsRepo();
            _guestsRepo       = new MockGuestsRepo();
            Profiles            profile       = new Profiles();
            MapperConfiguration configuration = new MapperConfiguration(cfg => cfg.AddProfile(profile));

            _controller = new ReservationsController(_reservationsRepo, _guestsRepo, _hostsRepo, new Mapper(configuration));
        }