コード例 #1
0
 public void TestInitialize()
 {
     this.matchesService    = TestObjectFactoryServices.GetMatchesService();
     this.matchesController = new MatchesController(this.matchesService);
     this.autoMapperConfig  = new AutoMapperConfig();
     this.autoMapperConfig.Execute(typeof(MatchesController).Assembly);
 }
コード例 #2
0
        public void TestInitialize()
        {
            this.categoriesView     = TestObjectFactoryViews.GetCategoriesManagementView();
            this.categoriesServices = TestObjectFactoryServices.GetCategoriesServices();

            this.presenter = new CategoriesManagementPresenter(
                this.categoriesView.Object,
                this.categoriesServices.Object);
        }
コード例 #3
0
 public void TestInitialize()
 {
     this.matchesService       = TestObjectFactoryServices.GetMatchesService();
     this.dataManager          = TestObjectFactoryDataManager.GetDataManager();
     this.homeController       = new HomeController(this.dataManager, this.matchesService);
     this.homeController.Cache = TestObjectFactoryServices.GetCacheService <Match>();
     this.autoMapperConfig     = new AutoMapperConfig();
     this.autoMapperConfig.Execute(typeof(HomeController).Assembly);
 }
コード例 #4
0
        public void TestInitialize()
        {
            this.airportsView      = TestObjectFactoryViews.GetAirportsManagementView();
            this.airportsServices  = TestObjectFactoryServices.GetAirportsServices();
            this.countriesServices = TestObjectFactoryServices.GetCountriesServices();

            this.presenter = new AirportsManagementPresenter(
                this.airportsView.Object,
                this.airportsServices.Object,
                this.countriesServices.Object);
        }
コード例 #5
0
        public void TestInitialize()
        {
            this.baggageView      = TestObjectFactoryViews.GetBaggageManagementView();
            this.baggageServices  = TestObjectFactoryServices.GetBaggageServices();
            this.bookingsServices = TestObjectFactoryServices.GetBookingsServices();

            this.presenter = new BaggageManagementPresenter(
                this.baggageView.Object,
                this.baggageServices.Object,
                this.bookingsServices.Object);
        }
        public void TestInitialize()
        {
            this.aircraftManufacturersView     = TestObjectFactoryViews.GetAircraftManufacturersManagementView();
            this.aircraftManufacturersServices = TestObjectFactoryServices.GetAircraftManufacturersServices();
            this.aircraftsServices             = TestObjectFactoryServices.GetAircraftsServices();

            this.presenter = new AircraftManufacturersManagementPresenter(
                this.aircraftManufacturersView.Object,
                this.aircraftManufacturersServices.Object,
                this.aircraftsServices.Object);
        }
コード例 #7
0
        public void TestInitialize()
        {
            this.flightLegsView       = TestObjectFactoryViews.GetFlightLegsManagementView();
            this.flightLegsServices   = TestObjectFactoryServices.GetFlightLegsServices();
            this.airportsServices     = TestObjectFactoryServices.GetAirportsServices();
            this.flightsServices      = TestObjectFactoryServices.GetFlightsServices();
            this.routesServices       = TestObjectFactoryServices.GetRoutesServices();
            this.legInstancesServices = TestObjectFactoryServices.GetLegInstancesServices();

            this.presenter = new FlightLegsManagementPresenter(
                this.flightLegsView.Object,
                this.flightLegsServices.Object,
                this.airportsServices.Object,
                this.flightsServices.Object,
                this.routesServices.Object,
                this.legInstancesServices.Object);
        }
コード例 #8
0
 public void TestInitialize()
 {
     this.airportsServices   = TestObjectFactoryServices.GetAirportsServices();
     this.airportsController = new AirportsController(this.airportsServices.Object);
 }
コード例 #9
0
 public void TestInitialize()
 {
     this.countriesServices   = TestObjectFactoryServices.GetCountriesServices();
     this.countriesController = new CountriesController(this.countriesServices.Object);
 }
コード例 #10
0
 public void TestInitialize()
 {
     this.faresServices   = TestObjectFactoryServices.GetFaresServices();
     this.faresController = new FaresController(this.faresServices.Object);
 }
コード例 #11
0
 public void TestInitialize()
 {
     this.flightsServices   = TestObjectFactoryServices.GetLegInstancesServices();
     this.flightsController = new FlightsController(this.flightsServices.Object);
 }
コード例 #12
0
 public void TestInitialize()
 {
     this.aircraftManufacturersServices = TestObjectFactoryServices.GetAircraftManufacturersServices();
     this.manufacturersController       = new AircraftManufacturersController(this.aircraftManufacturersServices.Object);
 }