コード例 #1
0
        public InOutBoundTests()
        {
            IUnitOfWork uow = new NHUnitOfWork();

            this._inOutBoundRepository           = new InOutBoundRepository(uow);
            this._arrivalReceiptRepository       = new ArrivalReceiptRepository(uow);
            this._arrivalReceiptDetailRepository = new ArrivalReceiptDetailRepository(uow);
            this._inOutReasonRepository          = new InOutReasonRepository(uow);
            this._spotInventoryRepository        = new SpotInventoryRepository(uow);
        }
コード例 #2
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();
        }
コード例 #3
0
 public InOutReasonService(IInOutReasonRepository InOutReasonRepository, IUnitOfWork uow)
 {
     this._inOutReasonRepository = InOutReasonRepository;
     this._uow = uow;
 }