Esempio n. 1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing && paymentDeadlineRepository != null)
     {
         paymentDeadlineRepository.Dispose();
         paymentDeadlineRepository = null;
     }
     base.Dispose(disposing);
 }
        public ProductQuoteServiceBuilder()
        {
            _logger                                = new Logger();
            _productRepository                     = new ProductRepository(_logger, new ProductDocumentRepository(_logger));
            _saleModalityRepository                = new SaleModalityRepository(_logger);
            _geographicAreaRepository              = new GeographicAreaRepository(_logger);
            _saleModalityProductRepository         = new SaleModalityProductRepository(_logger);
            _geographicAreaTransportTypeRepository = new GeographicAreaTransportTypeRepository(_logger);
            _creditRatingPaymentDeadlineRepository = new CreditRatingPaymentDeadlineRepository(_logger);
            _exchangeTypeRepository                = new ExchangeTypeRepository(_logger);
            _stockTimeRepository                   = new StockTimeRepository(_logger);
            _deliveryAmountRepository              = new DeliveryAmountRepository(_logger);

            _productQuoteRepository    = new ProductQuoteRepository(_logger);
            _emailManager              = new EmailManager();
            _emailAccountRepository    = new EmailAccountRepository(_logger);
            _adminUserRepository       = new AdminUserRepository();
            _applicationUserRepository = new ApplicationUserRepository();
            _workflowMessageService    = new WorkflowMessageService(_emailManager, _emailAccountRepository, _adminUserRepository, _applicationUserRepository);
            _pdfService = new PdfService();
            _saleModalityCreditRatingRepository = new SaleModalityCreditRatingRepository(_logger);
            _globalVariableRepository           = new GlobalVariableRepository(_logger);
            _customerOrderRepository            = new CustomerOrderRepository(_logger);
            _customerRepository         = new CustomerRepository(_logger);
            _transportTypeRepository    = new TransportTypeRepository(_logger);
            _packagingRepository        = new PackagingRepository(_logger);
            _rofexRepository            = new RofexRepository(_logger);
            _paymentDeadlineRepository  = new PaymentDeadlineRepository(_logger);
            _shipmentTrackingRepository = new ShipmentTrackingRepository(_logger);
            _customerProductRepository  = new CustomerProductRepository(_logger);
            _logRecordRepository        = new LogRecordRepository();
            _customerOrderService       = new CustomerOrderService(_customerOrderRepository, _workflowMessageService);
            _transportService           = new TransportServices(_geographicAreaTransportTypeRepository);
            _marginServices             = new MarginServices();
            _wayOfExceptionRepository   = new WayOfExceptionRepository(_logger);
            _wayOfExceptionServices     = new WayOfExceptionServices(_wayOfExceptionRepository);
            _salesChannelUserRepository = new SalesChannelUserRepository(_logger);
        }
Esempio n. 3
0
 public WayOfExceptionController(IWayOfExceptionRepository wayOfExceptionRepo,
                                 ICustomerRepository customerRepo,
                                 IProductRepository productRepo,
                                 ISaleModalityRepository saleModalityRepo,
                                 IGeographicAreaRepository geographicAreaRepo,
                                 IPaymentDeadlineRepository paymentDeadlineRepo,
                                 IExchangeTypeRepository exchangeTypeRepo,
                                 IProductQuoteService productQuoteServ,
                                 IDeliveryAmountRepository deliveryAmountRepo,
                                 IStockTimeRepository stockTimeRepo,
                                 IGlobalVariableRepository globalVariableRepo)
 {
     wayOfExceptionRepository  = wayOfExceptionRepo;
     customerRepository        = customerRepo;
     productRepository         = productRepo;
     saleModalityRepository    = saleModalityRepo;
     geographicAreaRepository  = geographicAreaRepo;
     paymentDeadlineRepository = paymentDeadlineRepo;
     exchangeTypeRepository    = exchangeTypeRepo;
     productQuoteService       = productQuoteServ;
     deliveryAmountRepository  = deliveryAmountRepo;
     stockTimeRepository       = stockTimeRepo;
     globalVariableRepository  = globalVariableRepo;
 }
Esempio n. 4
0
 public PaymentDeadlineController(IPaymentDeadlineRepository paymentDeadlineRepo)
 {
     paymentDeadlineRepository = paymentDeadlineRepo;
 }
Esempio n. 5
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (wayOfExceptionRepository != null)
         {
             wayOfExceptionRepository.Dispose();
             wayOfExceptionRepository = null;
         }
         if (customerRepository != null)
         {
             customerRepository.Dispose();
             customerRepository = null;
         }
         if (productRepository != null)
         {
             productRepository.Dispose();
             productRepository = null;
         }
         if (saleModalityRepository != null)
         {
             saleModalityRepository.Dispose();
             saleModalityRepository = null;
         }
         if (geographicAreaRepository != null)
         {
             geographicAreaRepository.Dispose();
             geographicAreaRepository = null;
         }
         if (paymentDeadlineRepository != null)
         {
             paymentDeadlineRepository.Dispose();
             paymentDeadlineRepository = null;
         }
         if (exchangeTypeRepository != null)
         {
             exchangeTypeRepository.Dispose();
             exchangeTypeRepository = null;
         }
         if (productQuoteService != null)
         {
             productQuoteService.Dispose();
             productQuoteService = null;
         }
         if (deliveryAmountRepository != null)
         {
             deliveryAmountRepository.Dispose();
             deliveryAmountRepository = null;
         }
         if (stockTimeRepository != null)
         {
             stockTimeRepository.Dispose();
             stockTimeRepository = null;
         }
         if (globalVariableRepository != null)
         {
             globalVariableRepository.Dispose();
             globalVariableRepository = null;
         }
     }
     base.Dispose(disposing);
 }