Esempio n. 1
0
        public CustomerController(ICustomerService customerServ,
                                  ICreditRatingRepository creditRatingRepo,
                                  IWorkflowMessageService workflowMessageServ,
                                  ICustomerProductRepository customerProductRepo,
                                  IContactRepository contactRepo,
                                  IContactTypeRepository contactTypeRepo,
                                  IGenericRepository <ContactClass> contactClassRepo,
                                  ISalesChannelRepository salesChannelRepo,
                                  ISalesChannelUserRepository salesChannelUserRepo)
        {
            customerService            = customerServ;
            creditRatingRepository     = creditRatingRepo;
            workflowMessageService     = workflowMessageServ;
            customerProductRepository  = customerProductRepo;
            contactRepository          = contactRepo;
            contactTypeRepository      = contactTypeRepo;
            contactClassRepository     = contactClassRepo;
            salesChannelRepository     = salesChannelRepo;
            salesChannelUserRepository = salesChannelUserRepo;

            userManager = new UserManager <CustomerUser>(new UserStore <CustomerUser>(new ApplicationDbContext()));
            userManager.UserValidator = new UserValidator <CustomerUser>(userManager)
            {
                //AllowOnlyAlphanumericUserNames = true,
                RequireUniqueEmail = true
            };
        }
Esempio n. 2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (customerOrderRepository != null)
         {
             customerOrderRepository.Dispose();
             customerOrderRepository = null;
         }
         if (shipmentTrackingRepository != null)
         {
             shipmentTrackingRepository.Dispose();
             shipmentTrackingRepository = null;
         }
         if (customerOrderService != null)
         {
             customerOrderService.Dispose();
             customerOrderService = null;
         }
         if (productQuoteRepository != null)
         {
             productQuoteRepository.Dispose();
             productQuoteRepository = null;
         }
         if (customerProductRepository != null)
         {
             customerProductRepository.Dispose();
             customerProductRepository = null;
         }
     }
     base.Dispose(disposing);
 }
Esempio n. 3
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         // Free managed resources
         if (productRepository != null)
         {
             productRepository.Dispose();
             productRepository = null;
         }
         if (saleModalityProductRepository != null)
         {
             saleModalityProductRepository.Dispose();
             saleModalityProductRepository = null;
         }
         if (productDocumentService != null)
         {
             productDocumentService.Dispose();
             productDocumentService = null;
         }
         if (customerProductRepository != null)
         {
             customerProductRepository.Dispose();
             customerProductRepository = null;
         }
         if (saleModalityProductMarginRepository != null)
         {
             saleModalityProductMarginRepository.Dispose();
             saleModalityProductMarginRepository = null;
         }
     }
 }
Esempio n. 4
0
 protected override void Dispose(bool disposing)
 {
     if (disposing && customerProductRepository != null)
     {
         customerProductRepository.Dispose();
         customerProductRepository = null;
     }
     base.Dispose(disposing);
 }
Esempio n. 5
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (contactTypeRepository != null)
         {
             contactTypeRepository.Dispose();
             contactTypeRepository = null;
         }
         if (contactRepository != null)
         {
             contactRepository.Dispose();
             contactRepository = null;
         }
         if (customerService != null)
         {
             customerService.Dispose();
             customerService = null;
         }
         if (creditRatingRepository != null)
         {
             creditRatingRepository.Dispose();
             creditRatingRepository = null;
         }
         if (userManager != null)
         {
             userManager.Dispose();
             userManager = null;
         }
         if (workflowMessageService != null)
         {
             workflowMessageService.Dispose();
             workflowMessageService = null;
         }
         if (customerProductRepository != null)
         {
             customerProductRepository.Dispose();
             customerProductRepository = null;
         }
         if (contactClassRepository != null)
         {
             contactClassRepository.Dispose();
             contactClassRepository = null;
         }
         if (salesChannelRepository != null)
         {
             salesChannelRepository.Dispose();
             salesChannelRepository = null;
         }
         if (salesChannelUserRepository != null)
         {
             salesChannelUserRepository.Dispose();
             salesChannelUserRepository = null;
         }
     }
     base.Dispose(disposing);
 }
 public PaymentService(IPurseRepository purseRepository,
                       IUserDepositRepository userDepositRepository,
                       ICustomerProductRepository customerProductRepository,
                       IVendingMachineService vendingMachineService)
 {
     _purseRepository           = purseRepository;
     _userDepositRepository     = userDepositRepository;
     _customerProductRepository = customerProductRepository;
     _vendingMachineService     = vendingMachineService;
 }
Esempio n. 7
0
 public CustomerOrdersController(ICustomerOrderRepository customerOrderRepo,
                                 IShipmentTrackingRepository shipmentTrackingRepo,
                                 ICustomerOrderService customerOrderServ,
                                 IProductQuoteRepository productQuoteRepo,
                                 ICustomerProductRepository customerProductRepo)
 {
     customerOrderRepository    = customerOrderRepo;
     shipmentTrackingRepository = shipmentTrackingRepo;
     customerOrderService       = customerOrderServ;
     productQuoteRepository     = productQuoteRepo;
     customerProductRepository  = customerProductRepo;
 }
Esempio n. 8
0
 public ProductService(
     IProductRepository productRepo,
     ISaleModalityProductRepository saleModalityProductRepo,
     IProductDocumentService productDocumentServ,
     ICustomerProductRepository customerProductRepo,
     ISaleModalityProductMarginRepository saleModalityProductMarginRepo)
 {
     productRepository                   = productRepo;
     saleModalityProductRepository       = saleModalityProductRepo;
     productDocumentService              = productDocumentServ;
     customerProductRepository           = customerProductRepo;
     saleModalityProductMarginRepository = saleModalityProductMarginRepo;
 }
 public VendingMachineService(IPurseRepository purseRepository,
                              IUserDepositRepository userDepositRepository,
                              IVMCreatorRepository vMCreatorRepository,
                              ICustomerProductRepository customerProductRepository,
                              IMapper mapper,
                              UserManager <User> userManager)
 {
     _purseRepository           = purseRepository;
     _userDepositRepository     = userDepositRepository;
     _vMCreatorRepository       = vMCreatorRepository;
     _customerProductRepository = customerProductRepository;
     _mapper      = mapper;
     _userManager = userManager;
 }
Esempio n. 10
0
 public ProductQuoteController(IProductQuoteRepository productQuoteRepo,
                               ICustomerRepository customerRepo,
                               ICustomerProductRepository customerProductRepo,
                               IProductQuoteService productQuoteServ,
                               IDueDateReasonRepository dueDateReasonRepo,
                               IGenericRepository <ReasonsForClosure> reasonsForClosureRepo)
 {
     productQuoteRepository      = productQuoteRepo;
     customerRepository          = customerRepo;
     customerProductRepository   = customerProductRepo;
     productQuoteService         = productQuoteServ;
     dueDateReasonRepository     = dueDateReasonRepo;
     reasonsForClosureRepository = reasonsForClosureRepo;
     userManager = new UserManager <ApplicationUser>(new UserStore <ApplicationUser>(new ApplicationDbContext()));
 }
Esempio n. 11
0
 public ProductQuoteApiController(IProductQuoteService productQuoteServ, IProductQuoteRepository productQuoteRepo, IProductRepository productRepo, ISaleModalityRepository saleModalityRepo, IGeographicAreaRepository geographicAreaRepo, ISaleModalityProductRepository saleModalityProductRepo, IGeographicAreaTransportTypeRepository geographicAreaTransportTypeRepo, ICreditRatingPaymentDeadlineRepository creditRatingPaymentDeadlineRepo, IExchangeTypeRepository exchangeTypeRepo, IStockTimeRepository stockTimeRepo, IDeliveryAmountRepository deliveryAmountRepo, ICustomerProductRepository customerProductRepo, ICustomerRepository customerRepo, IGlobalVariableRepository globalVariableRepo, ILogRecordRepository logRecordRepo, ISalesChannelUserRepository salesChannelUserRepo)
 {
     productQuoteService                   = productQuoteServ;
     productQuoteRepository                = productQuoteRepo;
     productRepository                     = productRepo;
     saleModalityRepository                = saleModalityRepo;
     geographicAreaRepository              = geographicAreaRepo;
     saleModalityProductRepository         = saleModalityProductRepo;
     geographicAreaTransportTypeRepository = geographicAreaTransportTypeRepo;
     creditRatingPaymentDeadlineRepository = creditRatingPaymentDeadlineRepo;
     exchangeTypeRepository                = exchangeTypeRepo;
     stockTimeRepository                   = stockTimeRepo;
     deliveryAmountRepository              = deliveryAmountRepo;
     customerProductRepository             = customerProductRepo;
     customerRepository                    = customerRepo;
     globalVariableRepository              = globalVariableRepo;
     logRecordRepository                   = logRecordRepo;
     salesChannelUserRepository            = salesChannelUserRepo;
 }
Esempio n. 12
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (productQuoteRepository != null)
         {
             productQuoteRepository.Dispose();
             productQuoteRepository = null;
         }
         if (customerRepository != null)
         {
             customerRepository.Dispose();
             customerRepository = null;
         }
         if (userManager != null)
         {
             userManager.Dispose();
             userManager = null;
         }
         if (customerProductRepository != null)
         {
             customerProductRepository.Dispose();
             customerProductRepository = null;
         }
         if (productQuoteService != null)
         {
             productQuoteService.Dispose();
             productQuoteService = null;
         }
         if (dueDateReasonRepository != null)
         {
             dueDateReasonRepository.Dispose();
             dueDateReasonRepository = null;
         }
         if (reasonsForClosureRepository != null)
         {
             reasonsForClosureRepository.Dispose();
             reasonsForClosureRepository = null;
         }
     }
     base.Dispose(disposing);
 }
Esempio n. 13
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         // Free managed resources
         if (customerRepository != null)
         {
             customerRepository.Dispose();
             customerRepository = null;
         }
         if (saleModalityCustomerMarginRepository != null)
         {
             saleModalityCustomerMarginRepository.Dispose();
             saleModalityCustomerMarginRepository = null;
         }
         if (customerProductRepository != null)
         {
             customerProductRepository.Dispose();
             customerProductRepository = null;
         }
     }
 }
Esempio n. 14
0
        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. 15
0
 public StoreController(TaskExectionQueue executionEngine, IAuthenticationService authorizationService, IProductRepository productRepository, ICustomerRepository customerRepository, IOrganizationRepository organizationRepository, IOrderRepository orderRepository, IOrderProductRepository orderProductRepository, ICustomerProductRepository customerProductRepository, IAddressRepository addressRepository, IPaymentRepository paymentRepository, AccountDbContext context, DataDbContext dataDbContext,
                        UserManager <ApplicationUser> userManager,
                        SignInManager <ApplicationUser> signInManager,
                        ILogger <ApplicationUser> userlogger, Management management, IConfiguration config)
 {
     _executionEngine      = executionEngine;
     _authorizationService = authorizationService;
     //AuthSchemes = (string)RouteData.Values["OrganizationName"];
     _productRepository         = productRepository;
     _customerRepository        = customerRepository;
     _organizationRepository    = organizationRepository;
     _orderRepository           = orderRepository;
     _orderProductRepository    = orderProductRepository;
     _customerProductRepository = customerProductRepository;
     _addressRepository         = addressRepository;
     _paymentRepository         = paymentRepository;
     _config        = config;
     _management    = management;
     muserLogger    = userlogger;
     mContext       = context;
     _userManager   = userManager;
     _signInManager = signInManager;
 }
Esempio n. 16
0
 public CustomerController(ICustomerRepository customerRepository, ICustomerProductRepository customerProductRepository, IProductRepository productRepository)
 {
     _customerRepository        = customerRepository;
     _customerProductRepository = customerProductRepository;
     _productRepository         = productRepository;
 }
Esempio n. 17
0
 public CustomerProductsController(ICustomerProductRepository customer, ApplicationDbContext context)
 {
     _cust = customer;
     _ctx  = context;
 }
Esempio n. 18
0
 public CustomerReviewController(ICustomerProductRepository repository, ILogger <CustomerReviewController> logger)
 {
     _repository = repository;
     _logger     = logger;
 }
Esempio n. 19
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (productQuoteService != null)
         {
             productQuoteService.Dispose();
             productQuoteService = null;
         }
         if (productQuoteRepository != null)
         {
             productQuoteRepository.Dispose();
             productQuoteRepository = null;
         }
         if (productRepository != null)
         {
             productRepository.Dispose();
             productRepository = null;
         }
         if (saleModalityRepository != null)
         {
             saleModalityRepository.Dispose();
             saleModalityRepository = null;
         }
         if (geographicAreaRepository != null)
         {
             geographicAreaRepository.Dispose();
             geographicAreaRepository = null;
         }
         if (saleModalityProductRepository != null)
         {
             saleModalityProductRepository.Dispose();
             saleModalityProductRepository = null;
         }
         if (geographicAreaTransportTypeRepository != null)
         {
             geographicAreaTransportTypeRepository.Dispose();
             geographicAreaTransportTypeRepository = null;
         }
         if (creditRatingPaymentDeadlineRepository != null)
         {
             creditRatingPaymentDeadlineRepository.Dispose();
             creditRatingPaymentDeadlineRepository = null;
         }
         if (exchangeTypeRepository != null)
         {
             exchangeTypeRepository.Dispose();
             exchangeTypeRepository = null;
         }
         if (stockTimeRepository != null)
         {
             stockTimeRepository.Dispose();
             stockTimeRepository = null;
         }
         if (deliveryAmountRepository != null)
         {
             deliveryAmountRepository.Dispose();
             deliveryAmountRepository = null;
         }
         if (customerProductRepository != null)
         {
             customerProductRepository.Dispose();
             customerProductRepository = null;
         }
         if (customerRepository != null)
         {
             customerRepository.Dispose();
             customerRepository = null;
         }
         if (globalVariableRepository != null)
         {
             globalVariableRepository.Dispose();
             customerRepository = null;
         }
         if (logRecordRepository != null)
         {
             logRecordRepository.Dispose();
             logRecordRepository = null;
         }
         if (salesChannelUserRepository != null)
         {
             salesChannelUserRepository.Dispose();
             salesChannelUserRepository = null;
         }
         if (globalVariableRepository != null)
         {
             globalVariableRepository.Dispose();
             globalVariableRepository = null;
         }
     }
     base.Dispose(disposing);
 }
Esempio n. 20
0
 public CustomerProductApiController(ICustomerProductRepository customerProductRepo)
 {
     customerProductRepository = customerProductRepo;
 }
Esempio n. 21
0
 public CustomerService(ICustomerRepository customerRepo, ISaleModalityCustomerMarginRepository saleModalityCustomerMarginRepo, ICustomerProductRepository customerProductRepo)
 {
     customerRepository = customerRepo;
     saleModalityCustomerMarginRepository = saleModalityCustomerMarginRepo;
     customerProductRepository            = customerProductRepo;
 }