Пример #1
0
 public OrderService(IOrderRepository orderRepository, ICustomerFactory customerFactory, IEmailService emailService, IOrderSettings orderSettings)
 {
     _orderRepository = orderRepository;
     _customerFactory = customerFactory;
     _emailService = emailService;
     _orderSettings = orderSettings;
 }
        public CustomerController(ICustomerService customerService, ICustomerFactory customerFactory)
        {
            if (customerService == null) throw new ArgumentNullException("customerService");
            if (customerFactory == null) throw new ArgumentNullException("customerFactory");

            _customerService = customerService;
            _customerFactory = customerFactory;
        }
Пример #3
0
 public CustomerService(ICustomerRepository repository, IMapper mapper, ILogger <CustomerDTO> logger,
                        ICustomerFactory factory
                        )
 {
     _repository = repository;
     _factory    = factory;
     _mapper     = mapper;
     _logger     = logger;
 }
Пример #4
0
 public CheckoutController(CustomerAddressRepository customerAddressRepository, IContentRepository contentRepository, ICurrentMarket currentMarket, ICustomerFactory customerFactory, LocalizationService localizationService)
 {
     _customerAddressRepository = customerAddressRepository;
     _contactRepository         = new ContactRepository();
     _contentRepository         = contentRepository;
     _currentMarket             = currentMarket;
     _localizationService       = localizationService;
     _customerFactory           = customerFactory;
 }
 public CreateCustomerCommand(
     ICustomerRepositoryFacade repositories,
     ICustomerFactory factory,
     IUnitOfWork unitOfWork)
 {
     _repositories = repositories;
     _factory      = factory;
     _unitOfWork   = unitOfWork;
 }
Пример #6
0
        public CustomerIo(string siteId, string apiKey, ICustomerFactory customerFactory = null, JsonSerializer jsonSerializer = null)
        {
            this._customerFactory = customerFactory;
            this._jsonSerializer = jsonSerializer;

            this._client = new RestClient(Endpoint)
                {
                    Authenticator = new FixedHttpBasicAuthenticator(siteId, apiKey)
                };
        }
Пример #7
0
 public CustomerDomainService(
     DomainServiceParameters domainServiceParameters,
     ISystemUserFactory systemUserFactory,
     ICustomerFactory customerFactory,
     ICustomerIsValidToImportValidator customerIsValidToImportValidator
     ) : base(domainServiceParameters)
 {
     _systemUserFactory = systemUserFactory;
     _customerFactory   = customerFactory;
     _customerIsValidToImportValidator = customerIsValidToImportValidator;
 }
Пример #8
0
 public CustomerService
 (
     ICustomerFactory customerFactory,
     ICustomerRepository customerRepository,
     IUnitOfWork unitOfWork
 )
 {
     _customerFactory    = customerFactory;
     _customerRepository = customerRepository;
     _unitOfWork         = unitOfWork;
 }
Пример #9
0
        public CustomerIo(string siteId, string apiKey, ICustomerFactory customerFactory)
        {
            _siteId          = siteId;
            _apiKey          = apiKey;
            _customerFactory = customerFactory;

            _client = new RestClient(Endpoint)
            {
                Authenticator = new HttpBasicAuthenticator(_siteId, _apiKey)
            };
        }
Пример #10
0
        public BaseTest(Fixture fixture)
        {
            Fixture = fixture;

            _customerFactory = Fixture.GetService <ICustomerFactory>();
            _orderFactory    = Fixture.GetService <IOrderFactory>();
            _productFactory  = Fixture.GetService <IProductFactory>();

            _customerRepository = Fixture.GetService <ICustomerRepository>();
            _orderRepository    = Fixture.GetService <IOrderRepository>();
            _productRepository  = Fixture.GetService <IProductRepository>();
        }
Пример #11
0
 public InvoiceFactory(
     ITenantInfoValueObjectFactory tenantInfoValueObjectFactory,
     IGlobalizationConfig globalizationConfig,
     ICustomerFactory customerFactory,
     IInvoiceItemFactory invoiceItemFactory,
     IProductFactory productFactory
     )
     : base(tenantInfoValueObjectFactory, globalizationConfig)
 {
     _customerFactory    = customerFactory;
     _invoiceItemFactory = invoiceItemFactory;
     _productFactory     = productFactory;
 }
 /// <summary>
 /// </summary>
 /// <param name="unitOfWork"></param>
 /// <param name="customerRepository"></param>
 /// <param name="userService"></param>
 /// <param name="userRepository"></param>
 /// <param name="customerFactory"></param>
 public OnBoardCustomerUseCase(
     IUnitOfWork unitOfWork,
     ICustomerRepository customerRepository,
     IUserService userService,
     IUserRepository userRepository,
     ICustomerFactory customerFactory)
 {
     this._unitOfWork         = unitOfWork;
     this._customerRepository = customerRepository;
     this._userService        = userService;
     this._userRepository     = userRepository;
     this._customerFactory    = customerFactory;
 }
Пример #13
0
 public CustomerDomainService(
     IBus bus,
     ICustomerFactory factory,
     ICustomerIsValidForImportValidation customerIsValidForImportValidation,
     IGetCustomerByGovernamentalDocumentNumberQueryFactory getCustomerByGovernamentalDocumentNumberQueryFactory,
     IGetCustomerByGovernamentalDocumentNumberQueryAdapter getCustomerByGovernamentalDocumentNumberQueryAdapter,
     ICustomerWasImportedEventFactory customerWasImportedEventFactory,
     ICustomerWasUpdatedEventFactory customerWasUpdatedEventFactory
     ) : base(bus, factory)
 {
     _customerIsValidForImportValidation = customerIsValidForImportValidation;
     _customerWasImportedEventFactory    = customerWasImportedEventFactory;
     _getCustomerByGovernamentalDocumentNumberQueryAdapter = getCustomerByGovernamentalDocumentNumberQueryAdapter;
     _getCustomerByGovernamentalDocumentNumberQueryFactory = getCustomerByGovernamentalDocumentNumberQueryFactory;
     _customerWasUpdatedEventFactory = customerWasUpdatedEventFactory;
 }
Пример #14
0
 public OrderService(ICustomerFactory customerFactory,
                     IEmailService emailService,
                     IOrderSettings orderSettings,
                     IOrderGroupFactory orderGroupFactory,
                     IOrderRepository orderRepository,
                     ICurrentMarket currentMarket,
                     IPromotionEngine promotionEngine
                     )
 {
     _orderRepository   = orderRepository;
     _promotionEngine   = promotionEngine;
     _customerFactory   = customerFactory;
     _emailService      = emailService;
     _orderSettings     = orderSettings;
     _orderGroupFactory = orderGroupFactory;
     _market            = currentMarket.GetCurrentMarket();
 }
Пример #15
0
 public CheckoutController(CustomerAddressRepository customerAddressRepository, IContentRepository contentRepository,
                           ICurrentMarket currentMarket, ICustomerFactory customerFactory,
                           LocalizationService localizationService,
                           IWarehouseInventoryService warehouseInventory,
                           IWarehouseRepository warehouseRepository,
                           PaymentRegistry paymentRegistry)
 {
     _customerAddressRepository = customerAddressRepository;
     _contactRepository         = new ContactRepository();
     _contentRepository         = contentRepository;
     _currentMarket             = currentMarket;
     _localizationService       = localizationService;
     _customerFactory           = customerFactory;
     _warehouseInventory        = warehouseInventory;
     _warehouseRepository       = warehouseRepository;
     _paymentRegistry           = paymentRegistry;
 }
Пример #16
0
 public Register(
     IUserService userService,
     ICustomerFactory customerFactory,
     IAccountFactory accountFactory,
     IUserFactory userFactory,
     IOutputPort outputPort,
     ICustomerRepository customerRepository,
     IAccountRepository accountRepository,
     IUserRepository userRepository,
     IUnitOfWork unityOfWork)
 {
     _userService        = userService;
     _customerFactory    = customerFactory;
     _accountFactory     = accountFactory;
     _userFactory        = userFactory;
     _outputPort         = outputPort;
     _customerRepository = customerRepository;
     _accountRepository  = accountRepository;
     _userRepository     = userRepository;
     _unitOfWork         = unityOfWork;
 }
Пример #17
0
        public OrderProductService(
            IDateService dateService,
            IProductFactory productFactory,
            IProductRepository productRepository,
            IProductModelRepository productModelRepository,
            ICustomerRepository customerRepository,
            IBasketRepository basketRepository,
            IShippingAddressFactory shippingAddressFactory,
            ICustomerFactory customerFactory,
            ICustomerValidator customerValidator)
        {
            dateService.CheckArgumentIsNull(nameof(dateService));
            _dateService = dateService;

            productFactory.CheckArgumentIsNull(nameof(productFactory));
            _productFactory = productFactory;

            productRepository.CheckArgumentIsNull(nameof(productRepository));
            _productRepository = productRepository;

            productModelRepository.CheckArgumentIsNull(nameof(productModelRepository));
            _productModelRepository = productModelRepository;

            customerRepository.CheckArgumentIsNull(nameof(customerRepository));
            _customerRepository = customerRepository;

            basketRepository.CheckArgumentIsNull(nameof(basketRepository));
            _basketRepository = basketRepository;

            shippingAddressFactory.CheckArgumentIsNull(nameof(shippingAddressFactory));
            _shippingAddressFactory = shippingAddressFactory;

            customerFactory.CheckArgumentIsNull(nameof(customerFactory));
            _customerFactory = customerFactory;

            customerValidator.CheckArgumentIsNull(nameof(customerValidator));
            _customerValidator = customerValidator;
        }
Пример #18
0
 public CreateCustomerUseCase(IMapper mapper, IUnitOfWork unitOfWork, ICustomerRepository customerRepository, ICustomerFactory customerFactory)
 {
     _mapper             = mapper;
     _unitOfWork         = unitOfWork;
     _customerRepository = customerRepository;
     _customerFactory    = customerFactory;
 }
 public AddCustomerHandler(ICustomerFactory securityFactory, ICustomerRepository customerRepository)
 {
     _securityFactory    = securityFactory;
     _customerRepository = customerRepository;
 }
Пример #20
0
 public CustomerProcessor(ICustomerRepository customerRepository, ICustomerFactory customerFactory)
 {
     _customerRepository = customerRepository;
     _customerFactory    = customerFactory;
 }
Пример #21
0
 public AccountModel(ISessionHelper sessionHelper, IHttpClientFactory clientFactory, ICustomerFactory customerFactory)
 {
     this.sessionHelper   = sessionHelper;
     this.clientFactory   = clientFactory;
     this.customerFactory = customerFactory;
     FormData             = new EditCustomerViewModel();
 }
Пример #22
0
 public OrderService(IOrderRepository orderRepository, ICustomerFactory customerFactory, IEmailService emailService)
 {
     _orderRepository = orderRepository;
     _customerFactory = customerFactory;
     _emailService    = emailService;
 }
 public CreateCustomerCommand(IDatabaseService database, ICustomerFactory factory)
 {
     _database = database;
     _factory = factory;
 }
        protected internal TransactionService(ITransactionDataConnector dataConnector, IAgentFactory agentFactory, ITransactionFeeListFactory transactionFeeListFactory,
                                              ITransactionContextFactory transactionContextFactory, ICustomerFactory customerFactory, ITransactionDeficienciesFactory transactionDeficienciesFactory, IDocumentService documentService,
                                              IEvidenceService evidenceService, ILocationFactory locationFactory, IRequirementEvaluator requirementEvaluator, ITransactionHistoryFactory transactionHistoryFactory,
                                              IFeeList feeList, IList <ITransactionType> registeredTransactions)
        {
            this.DataConnector                  = dataConnector ?? throw new ArgumentNullException("dataConnector");
            this.AgentFactory                   = agentFactory ?? throw new ArgumentNullException("agentFactory");
            this.TransactionFeeListFactory      = transactionFeeListFactory ?? throw new ArgumentNullException("feeListFactory");
            this.TransactionContextFactory      = transactionContextFactory ?? throw new ArgumentNullException("transactionContextFactory");
            this.CustomerFactory                = customerFactory ?? throw new ArgumentNullException("customerFactory");
            this.TransactionDeficienciesFactory = transactionDeficienciesFactory ?? throw new ArgumentNullException("transactionDeficienciesFactory");
            this.DocumentService                = documentService ?? throw new ArgumentNullException("documentService");
            this.EvidenceService                = evidenceService ?? throw new ArgumentNullException("evidenceService");
            this.LocationFactory                = locationFactory ?? throw new ArgumentNullException("locationFactory");
            this.RequirementEvaluator           = requirementEvaluator ?? throw new ArgumentNullException("requirementEvaluator");
            this.TransactionHistoryFactory      = transactionHistoryFactory ?? throw new ArgumentNullException("transactionHistoryFactory");
            this.FeeList = feeList ?? throw new ArgumentNullException("feeList");

            if (registeredTransactions == null)
            {
                this.RegisteredTransactionTypes = new List <ITransactionType>();
            }
            else
            {
                this.RegisteredTransactionTypes = registeredTransactions.ToList();
            }
        }
Пример #25
0
 public ValuesController(ICustomerFactory customerFactory)
 {
     _CustomerFactory = customerFactory;
 }
 public CustomerService(ICustomerFactory customerFactory, IConfiguration configuration)
 {
     this.customerFactory = customerFactory;
     this.configuration   = configuration;
 }
Пример #27
0
 public PeopleController(ICustomerFactory customerFactory, IDeveloperFactory developerFactory)
 {
     _customerFactory  = customerFactory;
     _developerFactory = developerFactory;
 }
 public IsUsernameAvailableHandler(ICustomerFactory customerFactory, ICustomerRepository customerRepository)
 {
     _customerFactory    = customerFactory;
     _customerRepository = customerRepository;
 }
 public CreateCustomerCommand(IDatabaseService context, ICustomerFactory factory)
 {
     this._context = context;
     this._factory = factory;
 }
Пример #30
0
 public TransactionServiceFactory(IProcessSettingsFactory settingsFactory, ITransactionDataConnector dataConnector, IAgentFactory agentFactory, IAlternateBranchFactory alternateBranchFactory,
                                  ITransactionFeeListFactory transactionFeeListFactory, ITransactionContextFactory transactionContextFactory, ICustomerFactory customerFactory, ITransactionDeficienciesFactory transactionDeficienciesFactory,
                                  IDocumentService documentService, ILogicEvaluatorTypeFactory evaluatorTypeFactory, IEvidenceService evidenceService, ILocationFactory locationFactory,
                                  IParameterSerializer parameterSerializer, IPlatformService platformService, IProcessStepFactory processStepFactory, IProcessStepTypeFactory processStepTypeFactory,
                                  IRequirementEvaluator requirementEvaluator, IRequirementFactory requirementFactory, ITransactionHistoryFactory transactionHistoryFactory,
                                  ITransactionProcessFactory transactionProcessFactory, IFeeList feeList)
 {
     this.SettingsFactory                = settingsFactory ?? throw new ArgumentNullException("settingsFactory");
     this.DataConnector                  = dataConnector ?? throw new ArgumentNullException("dataConnector");
     this.AgentFactory                   = agentFactory ?? throw new ArgumentNullException("agentFactory.");
     this.AlternateBranchFactory         = alternateBranchFactory ?? throw new ArgumentNullException("alternateBrachFactory");
     this.TransactionFeeListFactory      = transactionFeeListFactory ?? throw new ArgumentNullException("transactionFeeListFactory");
     this.TransactionContextFactory      = transactionContextFactory ?? throw new ArgumentNullException("transactionContextFactory");
     this.CustomerFactory                = customerFactory ?? throw new ArgumentNullException("customerFactory.");
     this.TransactionDeficienciesFactory = transactionDeficienciesFactory ?? throw new ArgumentNullException("transactionDeficienciesFactory");
     this.DocumentService                = documentService ?? throw new ArgumentNullException("documentService");
     this.EvaluatorTypeFactory           = evaluatorTypeFactory ?? throw new ArgumentNullException("evaluatorTypeFactory.");
     this.EvidenceService                = evidenceService ?? throw new ArgumentNullException("evidenceService");
     this.LocationFactory                = locationFactory ?? throw new ArgumentNullException("locationFactory.");
     this.PlatformService                = platformService ?? throw new ArgumentNullException("platformService.");
     this.ProcessStepFactory             = processStepFactory ?? throw new ArgumentNullException("processStepFactory.");
     this.ProcessStepTypeFactory         = processStepTypeFactory ?? throw new ArgumentNullException("processStepTypeFactory.");
     this.RequirementEvaluator           = requirementEvaluator ?? throw new ArgumentNullException("requirementEvaluator");
     this.RequirementFactory             = requirementFactory ?? throw new ArgumentNullException("requirementFactory.");
     this.TransactionHistoryFactory      = transactionHistoryFactory ?? throw new ArgumentNullException("transactionHistoryFactory");
     this.TransactionProcessFactory      = transactionProcessFactory ?? throw new ArgumentNullException("transactionProcessFactory.");
     this.ParameterSerializer            = parameterSerializer ?? throw new ArgumentNullException("parameterSerializer");
     this.FeeList = feeList ?? throw new ArgumentNullException("feeList");
 }
Пример #31
0
 public CustomerAccounts(ICustomerFactory cust, IAccountFactory acc)
 {
     this._customer = cust.CreateCustomer();
     this._accounts = new List <AccountControler>();
     this._accounts.Add(new AccountControler(acc));
 }
 public TransactionContextFactory(IProcessSettingsFactory settingsFactory, ITransactionDataConnector dataConnector, ICustomerFactory customerFactory)
 {
     this.SettingsFactory = settingsFactory ?? throw new ArgumentNullException("settingsFactory");
     this.DataConnector   = dataConnector ?? throw new ArgumentNullException("dataConnector");
     this.CustomerFactory = customerFactory ?? throw new ArgumentNullException("customerFactory");
 }
 public OrderService(IOrderRepository orderRepository, ICustomerFactory customerFactory, IEmailService emailService)
 {
     _orderRepository = orderRepository;
     _customerFactory = customerFactory;
     _emailService = emailService;
 }
 public CustomersController(IDataApi dataApi, ICustomerFactory customerFactory)
 {
     this._customerFactory = customerFactory;
     this._dataApi         = dataApi;
 }