public BaseController()
        {
            UserRepo = new UserRepository();
            RawMaterialReceivedRepo  = new RawMaterialReceivedRepository();
            ProductionLineRepo       = new ProductionLineRepository();
            CurrentRawMaterialRepo   = new CurrentRawMaterialRepository();
            RawMaterialQCRedHoldRepo = new RawMaterialQCRedHoldRepository();

            TPO.Domain.DTO.UserDTO user = UserRepo.GetUserByUserName("acorrington"); // TODO: Once the security model is finalized getting CurrentUser and CurrentPlantID will need to be revisited
            _currentUser   = user.Username;
            _plantId       = user.PlantID;
            _currentUserID = user.ID;
        }
 public UnitOfWork()
 {
     _context                 = new IndicoContext();
     CompanyRepository        = new CompanyRepository(_context);
     UserStatusRepository     = new UserStatusRepository(_context);
     MenuItemRepository       = new MenuItemRepository(_context);
     UserRepository           = new UserRepository(_context);
     RoleRepository           = new RoleRepository(_context);
     OrderRepository          = new OrderRepository(_context);
     OrderDetailRepository    = new OrderDetailRepository(_context);
     AgeGroupRepository       = new AgeGroupRepository(_context);
     ColourProfileRepository  = new ColourProfileRepository(_context);
     GenderRepository         = new GenderRepository(_context);
     PrinterRepository        = new PrinterRepository(_context);
     PrinterTypeRepository    = new PrinterTypeRepository(_context);
     ProductionLineRepository = new ProductionLineRepository(_context);
 }
예제 #3
0
 public ProductionLineController(IProductionLineRepository context)
 {
     _productionLineRepository = context;
 }
 public ProductionCommandHandler(IProductionLineRepository productionLineRepository)
 {
     this.productionLineRepository = productionLineRepository;
 }
예제 #5
0
 public CompleteMaintenanceCommandHandler(IProductionLineRepository productionLineRepository)
 {
     this.productionLineRepository = productionLineRepository;
 }
예제 #6
0
 public ProductionLineService(Context _context, MachineService machineService)
 {
     _productionLineRepository = new ProductionLineRepository(_context);
     _machineService           = machineService;
 }
 public ProductionLineController(IProductionLineRepository IProductionLineRepository, IMachineRepository IMachineRepository)
 {
     _IProductionLineRepository = IProductionLineRepository;
     _IMachineRepository        = IMachineRepository;
 }
 public ShutDownForMaintenanceCommandHandler(IProductionLineRepository productionLineRepository)
 {
     this.productionLineRepository = productionLineRepository;
 }
예제 #9
0
 public ProductionLineService(IProductionLineRepository productionLineRepository, IMachineRepository machineRepository)
 {
     _productionLineRepository = productionLineRepository ?? throw new ArgumentNullException(nameof(productionLineRepository));
     _machineRepository        = machineRepository ?? throw new ArgumentNullException(nameof(machineRepository));
 }