public ArrivalReceiptTests()
        {
            IUnitOfWork uow = new NHUnitOfWork();

            this._arrivalReceiptRepository       = new ArrivalReceiptRepository(uow);
            this._arrivalReceiptDetailRepository = new ArrivalReceiptDetailRepository(uow);
            this._arrivalNoticeDetailRepository  = new ArrivalNoticeDetailRepository(uow);
            this._arrivalNoticeRepository        = new ArrivalNoticeRepository(uow);
        }
예제 #2
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);
        }
 public ArrivalReceiptService(
     IArrivalReceiptRepository purchaseReceiptRepository,
     IArrivalReceiptDetailRepository purchaseReceiptDetailRepository,
     //IPurchaseOrderDetailRepository purchaseOrderDetailRepository,
     //IWorkflowActivityService workflowActivityService,
     IUnitOfWork uow
     )
 {
     this._arrivalReceiptRepository       = purchaseReceiptRepository;
     this._arrivalReceiptDetailRepository = purchaseReceiptDetailRepository;
     //this._workflowActivityService = workflowActivityService;
     this._uow = uow;
 }
        public ArrivalReceiptTest()
        {
            IUnitOfWork uow = new NHUnitOfWork();

            this._arrivalReceiptRepository       = new ArrivalReceiptRepository(uow);
            this._arrivalReceiptDetailRepository = new ArrivalReceiptDetailRepository(uow);
            this._arrivalReceiptService          = new ArrivalReceiptService(this._arrivalReceiptRepository, this._arrivalReceiptDetailRepository, uow);

            this._workflowActivityService = new WorkflowActivityService(null, uow);

            this._arrivalNoticeRepository       = new ArrivalNoticeRepository(uow);
            this._arrivalNoticeDetailRepository = new ArrivalNoticeDetailRepository(uow);
            this._arrivalNoticeService          = new ArrivalNoticeService(this._arrivalNoticeRepository, this._arrivalNoticeDetailRepository, this._arrivalReceiptService, this._workflowActivityService, uow);


            AutoMapperBootStrapper.ConfigureAutoMapper();
        }