コード例 #1
0
        public FleetControllerTest()
        {
            this.CreateAppContext();

            // Automapper initializers
            Mapper.AddProfile<FleetMappingProfile>();
            Mapper.AddProfile<WidgetMappingProfile>();

            // setting up the context and repositories
            this.FleetDbContext = this.CreateDbContext<FleetDbContext>();
            FleetRepository fleetRepository = new FleetRepository(this.FleetDbContext);
            FleetDomain fleetDomain = new FleetDomain(fleetRepository);
            FleetDashboardDomain dashboardDomain = new FleetDashboardDomain(fleetRepository);

            this.WidgetDbContext = this.CreateDbContext<WidgetDbContext>();
            WidgetRepository widgetRepository = new WidgetRepository(this.WidgetDbContext);
            WidgetDomain widgetDomain = new WidgetDomain(widgetRepository);

            this.Controller = new FleetController(fleetDomain, dashboardDomain, widgetDomain);
        }
コード例 #2
0
        public QuarryControllerTest()
        {
            this.CreateAppContext();

            // Automapper initializers
            Mapper.AddProfile <QuarryMappingProfile>();
            Mapper.AddProfile <WidgetMappingProfile>();

            // setting up the context and repositories
            this.QuarryDbContext = this.CreateDbContext <QuarryDbContext>();
            QuarryRepository      quarryRepository = new QuarryRepository(this.QuarryDbContext);
            QuarryDomain          quarryDomain     = new QuarryDomain(quarryRepository);
            QuarryDashboardDomain dashboardDomain  = new QuarryDashboardDomain(quarryRepository);

            this.WidgetDbContext = this.CreateDbContext <WidgetDbContext>();
            WidgetRepository widgetRepository = new WidgetRepository(this.WidgetDbContext);
            WidgetDomain     widgetDomain     = new WidgetDomain(widgetRepository);

            this.Controller = new QuarryController(quarryDomain, dashboardDomain, widgetDomain);
        }
コード例 #3
0
        public FleetControllerTest()
        {
            this.CreateAppContext();

            // Automapper initializers
            Mapper.AddProfile <FleetMappingProfile>();
            Mapper.AddProfile <WidgetMappingProfile>();

            // setting up the context and repositories
            this.FleetDbContext = this.CreateDbContext <FleetDbContext>();
            FleetRepository      fleetRepository = new FleetRepository(this.FleetDbContext);
            FleetDomain          fleetDomain     = new FleetDomain(fleetRepository);
            FleetDashboardDomain dashboardDomain = new FleetDashboardDomain(fleetRepository);

            this.WidgetDbContext = this.CreateDbContext <WidgetDbContext>();
            WidgetRepository widgetRepository = new WidgetRepository(this.WidgetDbContext);
            WidgetDomain     widgetDomain     = new WidgetDomain(widgetRepository);

            this.Controller = new FleetController(fleetDomain, dashboardDomain, widgetDomain);
        }
コード例 #4
0
 public FleetController(FleetDomain domain, FleetDashboardDomain dashboardDomain, WidgetDomain widgetDomain)
 {
     this.domain          = domain;
     this.dashboardDomain = dashboardDomain;
     this.widgetDomain    = widgetDomain;
 }
コード例 #5
0
 public QuarryController(QuarryDomain domain, QuarryDashboardDomain dashboardDomain, WidgetDomain widgetDomain)
 {
     this.domain          = domain;
     this.dashboardDomain = dashboardDomain;
     this.widgetDomain    = widgetDomain;
 }
コード例 #6
0
ファイル: FleetController.cs プロジェクト: Nootus/MegaMine
 public FleetController(FleetDomain domain, FleetDashboardDomain dashboardDomain, WidgetDomain widgetDomain)
 {
     this.domain = domain;
     this.dashboardDomain = dashboardDomain;
     this.widgetDomain = widgetDomain;
 }