Ejemplo n.º 1
0
        public InOutBoundTest()
        {
            IUnitOfWork uow = new NHUnitOfWork();

            this._outBoundRsponstroy       = new OutBoundRepository(uow);
            this._inBoundRsponstroy        = new InBoundRepository(uow);
            this._inOutBoundRsponstroy     = new InOutBoundRepository(uow);
            this._productRepository        = new ProductRepository(uow);
            this._warehouseRepository      = new WarehouseRepository(uow);
            this._warehouseShelfRepository = new WarehouseShelfRepository(uow);
            this._inOutBoundService        = new InOutBoundService(_inOutBoundRsponstroy, _outBoundRsponstroy, _inBoundRsponstroy, _productRepository, _warehouseRepository, _warehouseShelfRepository, null, null, null, uow);

            this._inOutReasonRepository = new InOutReasonRepository(uow);
            this._inOutReasonService    = new InOutReasonService(this._inOutReasonRepository, uow);

            AutoMapperBootStrapper.ConfigureAutoMapper();
        }
Ejemplo n.º 2
0
 public InOutBoundService(
     IInOutBoundRepository inOutBoundRepository,
     IOutBoundRepository outBoundRepository,
     IInBoundRepository inBoundRepository,
     IProductRepository productRepository,
     IWarehouseRepository warehouseRepository,
     IWarehouseShelfRepository warehouseShelfRepository,
     IInOutReasonService inOutReasonService,
     ISpotInventoryService spotInventoryService,
     IUsersService usersService,
     IUnitOfWork uow
     )
 {
     this._inOutBoundRepository     = inOutBoundRepository;
     this._outBoundRepository       = outBoundRepository;
     this._inBoundRepository        = inBoundRepository;
     this._productRepository        = productRepository;
     this._warehouseRepository      = warehouseRepository;
     this._warehouseShelfRepository = warehouseShelfRepository;
     this._inOutReasonService       = inOutReasonService;
     this._spotInventoryService     = spotInventoryService;
     this._usersService             = usersService;
     this._uow = uow;
 }