public PurchaseOrderService( IPurchaseOrderRepository purchaseOrderRepository, IPurchaseOrderDetailRepository purchaseOrderDetailRepository, IPurchaseTypeRepository purchaseTypeRepository, IPaymentTypeRepository paymentTypeRepository, ISupplierRepository supplierRepository, IProductRepository productRepository, IArrivalNoticeRepository arrivalNoticeRepository, IWorkflowActivityService workflowActivityService, IUsersRepository usersRepository, IIdGenerator <PurchaseOrder, string> purchaseOrderIdGenerator, IUnitOfWork uow ) { this._purchaseOrderRepository = purchaseOrderRepository; this._purchaseOrderDetailRepository = purchaseOrderDetailRepository; this._purchaseTypeRepository = purchaseTypeRepository; this._paymentTypeRepository = paymentTypeRepository; this._supplierRepository = supplierRepository; this._productRepository = productRepository; this._arrivalNoticeRepository = arrivalNoticeRepository; this._workflowActivityService = workflowActivityService; this._usersRepository = usersRepository; this._purchaseOrderIdGenerator = purchaseOrderIdGenerator; this._uow = uow; }
public PurchaseOrderTests() { IUnitOfWork uow = new NHUnitOfWork(); this._purchaseOrderRepoistroy = new PurchaseOrderRepository(uow); this._purchaseOrderDetailRepoistroy = new PurchaseOrderDetailRepository(uow); this._purchaseTypeRepoistroy = new PurchaseTypeRepository(uow); }
public PurchaseOrderDetailService( ILogger <IPurchaseOrderDetailRepository> logger, IPurchaseOrderDetailRepository purchaseOrderDetailRepository, IApiPurchaseOrderDetailRequestModelValidator purchaseOrderDetailModelValidator, IBOLPurchaseOrderDetailMapper bolpurchaseOrderDetailMapper, IDALPurchaseOrderDetailMapper dalpurchaseOrderDetailMapper) : base(logger, purchaseOrderDetailRepository, purchaseOrderDetailModelValidator, bolpurchaseOrderDetailMapper, dalpurchaseOrderDetailMapper) { }
public MainViewModel( IProductRepository productRepository, ISupplierRepository supplierRepository, IPurchaseOrderRepository purchaseOrderRepository, IPurchaseOrderDetailRepository purchaseOrderDetailRepository, IEventAggregator ea) { ProductMainViewModel = new ProductMainViewModel(productRepository, ea); SupplierMainViewModel = new SupplierMainViewModel(supplierRepository, ea); PurchaseOrderMainViewModel = new PurchaseOrderMainViewModel(productRepository, supplierRepository, purchaseOrderRepository, purchaseOrderDetailRepository, ea); ea.GetEvent <Messanger>().Subscribe(OnMessageChanged); Glyph = TickGlyph; }
public AbstractPurchaseOrderDetailService( ILogger logger, IPurchaseOrderDetailRepository purchaseOrderDetailRepository, IApiPurchaseOrderDetailRequestModelValidator purchaseOrderDetailModelValidator, IBOLPurchaseOrderDetailMapper bolPurchaseOrderDetailMapper, IDALPurchaseOrderDetailMapper dalPurchaseOrderDetailMapper) : base() { this.purchaseOrderDetailRepository = purchaseOrderDetailRepository; this.purchaseOrderDetailModelValidator = purchaseOrderDetailModelValidator; this.bolPurchaseOrderDetailMapper = bolPurchaseOrderDetailMapper; this.dalPurchaseOrderDetailMapper = dalPurchaseOrderDetailMapper; this.logger = logger; }
public PurchaseOrderTest() { IUnitOfWork uow = new NHUnitOfWork(); this._purchaseOrderRepository = new PurchaseOrderRepository(uow); this._purchaseOrderDetailRepository = new PurchaseOrderDetailRepository(uow); this._purchaseTypeRepository = new PurchaseTypeRepository(uow); this._paymentTypeRepository = new PaymentTypeRepository(uow); this._supplierRepository = new SupplierRepository(uow); this._productRepository = new ProductRepository(uow); this._uersRepository = new UsersRepository(uow); this._purchaseTypeService = new PurchaseTypeService(this._purchaseTypeRepository, this._uersRepository, uow); this._purchaseOrderService = new PurchaseOrderService(this._purchaseOrderRepository, _purchaseOrderDetailRepository, this._purchaseTypeRepository, this._paymentTypeRepository, this._supplierRepository, this._productRepository, null, null, null, null, uow); this._purchaseOrderDetailService = new PurchaseOrderDetailService(this._purchaseOrderDetailRepository, uow); AutoMapperBootStrapper.ConfigureAutoMapper(); }
public PurchaseOrderMainViewModel( IProductRepository productRepository, ISupplierRepository supplierRepository, IPurchaseOrderRepository purchaseOrderRepository, IPurchaseOrderDetailRepository purchaseOrderDetailRepository, IEventAggregator ea) { ProductLocatingViewModel = new ProductLocatingViewModel(productRepository, ea); PurchaseOrderListViewModel = new PurchaseOrderListViewModel(ea); SupplierSelectionViewModel = new SupplierSelectionViewModel(supplierRepository, ea); PurchaseAllOrdersViewModel = new PurchaseAllOrdersViewModel(purchaseOrderRepository, ea); SubmitCommand = new DelegateCommand(Submit, CanSubmit); _productRepository = productRepository; _supplierRepository = supplierRepository; _purchaseOrderDetailRepository = purchaseOrderDetailRepository; EA = ea; EA.GetEvent <CanSubmitEvent>().Subscribe(RaiseCanSubmitEvent); EA.GetEvent <UpdatePurchaseDetails>().Subscribe(OnUpdatePurchaseDetails); }
public AbstractApiPurchaseOrderDetailRequestModelValidator(IPurchaseOrderDetailRepository purchaseOrderDetailRepository) { this.purchaseOrderDetailRepository = purchaseOrderDetailRepository; }
public PurchaseOrderDetailService(IPurchaseOrderDetailRepository purchaseOrderRepository, IUnitOfWork unitOfWork) { this._purchaseOrderRepository = purchaseOrderRepository; this._unitOfWork = unitOfWork; }
public PurchaseOrderDetailService(IPurchaseOrderDetailRepository _purchaseOrderDetailRepository, IPurchaseOrderDetailValidator _purchaseOrderDetailValidator) { _repository = _purchaseOrderDetailRepository; _validator = _purchaseOrderDetailValidator; }
public PurchaseOrderDetailService(IPurchaseOrderDetailRepository PurchaseOrderDetailRepository, IUnitOfWork uow) { this._purchaseOrderDetailRepository = PurchaseOrderDetailRepository; this._uow = uow; }
public ApiPurchaseOrderDetailRequestModelValidator(IPurchaseOrderDetailRepository purchaseOrderDetailRepository) : base(purchaseOrderDetailRepository) { }
public PurchaseOrderDetailService(IPurchaseOrderDetailRepository purchaseOrderDetailRepository) : base(purchaseOrderDetailRepository) { this.purchaseOrderDetailRepository = purchaseOrderDetailRepository; }