Пример #1
0
 public TestCalculationService(StateDepot stateDepot,
                               CalculationDepot calculationDepot,
                               SealingSlabDepot circleDepot,
                               CalculationViewDepot calculationViewDepot,
                               NPocoDataBaseFactory databaseFactory)
     : base(stateDepot, calculationDepot, circleDepot, calculationViewDepot, databaseFactory)
 {
 }
 public CalculationService()
 {
     this.databaseFactory      = new NPocoDataBaseFactory();
     this.database             = databaseFactory.GetDatabase();
     this.stateDepot           = new StateDepot(database);
     this.calculationDepot     = new CalculationDepot(database);
     this.sealingSlabDepot     = new SealingSlabDepot(database);
     this.calculationViewDepot = new CalculationViewDepot(database);
 }
 public CalculationService(StateDepot stateDepot,
                           CalculationDepot calculationDepot,
                           SealingSlabDepot sealingSlabDepot,
                           CalculationViewDepot calculationViewDepot,
                           NPocoDataBaseFactory databaseFactory)
 {
     this.stateDepot           = stateDepot;
     this.calculationDepot     = calculationDepot;
     this.sealingSlabDepot     = sealingSlabDepot;
     this.calculationViewDepot = calculationViewDepot;
     this.databaseFactory      = databaseFactory;
 }
Пример #4
0
        public DispatchService()
        {
            var databaseFactory = new NPocoDataBaseFactory();

            database = databaseFactory.GetDatabase();
            var databaseTimer = databaseFactory.GetDatabase();

            stateDepot            = new StateDepot(database);
            calculationDepot      = new CalculationDepot(database);
            calculationDepotTimer = new CalculationDepot(databaseTimer);
            sealingSlabDepot      = new SealingSlabDepot(database);
            calculationService    = new CalculationService(stateDepot, calculationDepot, sealingSlabDepot, new CalculationViewDepot(database), databaseFactory);
            estimationService     = new EstimationService(new EstimationDepot(database));
        }
Пример #5
0
        public DispatchService(StateDepot stateDepot,
                               CalculationDepot calculationDepot,
                               CalculationDepot calculationDepotTimer,
                               SealingSlabDepot sealingSlabDepot,
                               CalculationService calculationService,
                               EstimationService estimationService,
                               IDatabase database)
        {
            this.stateDepot            = stateDepot;
            this.calculationDepot      = calculationDepot;
            this.calculationDepotTimer = calculationDepotTimer;

            this.sealingSlabDepot   = sealingSlabDepot;
            this.calculationService = calculationService;
            this.estimationService  = estimationService;

            this.database = database;
        }
        public SealingSlabService()
        {
            var databaseFactory = new NPocoDataBaseFactory();

            sealingSlabDepot = new SealingSlabDepot(databaseFactory.GetDatabase());
        }