示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CustomerService"/> class.
 /// </summary>
 /// <param name="provider">
 /// The provider.
 /// </param>
 /// <param name="repositoryFactory">
 /// The repository factory.
 /// </param>
 /// <param name="logger">
 /// The logger.
 /// </param>
 /// <param name="anonymousCustomerService">
 /// The anonymous Customer Service.
 /// </param>
 /// <param name="customerAddressService">
 /// The customer Address Service.
 /// </param>
 /// <param name="invoiceService">
 /// The invoice Service.
 /// </param>
 /// <param name="paymentService">
 /// The payment Service.
 /// </param>
 public CustomerService(
     IDatabaseUnitOfWorkProvider provider,
     RepositoryFactory repositoryFactory,
     ILogger logger,
     IAnonymousCustomerService anonymousCustomerService,
     ICustomerAddressService customerAddressService,
     IInvoiceService invoiceService,
     IPaymentService paymentService)
     : this(provider, repositoryFactory, logger, new TransientMessageFactory(), anonymousCustomerService, customerAddressService, invoiceService, paymentService)
 {
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CustomerService"/> class.
 /// </summary>
 /// <param name="repositoryFactory">
 /// The repository factory.
 /// </param>
 /// <param name="anonymousCustomerService">
 /// The anonymous Customer Service.
 /// </param>
 /// <param name="customerAddressService">
 /// The customer Address Service.
 /// </param>
 /// <param name="invoiceService">
 /// The invoice Service.
 /// </param>
 /// <param name="paymentService">
 /// The payment Service.
 /// </param>
 public CustomerService(
     RepositoryFactory repositoryFactory,
     IAnonymousCustomerService anonymousCustomerService,
     ICustomerAddressService customerAddressService,
     IInvoiceService invoiceService,
     IPaymentService paymentService)
     : this(
         new PetaPocoUnitOfWorkProvider(),
         repositoryFactory,
         anonymousCustomerService,
         customerAddressService,
         invoiceService,
         paymentService)
 {
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CustomerService"/> class.
 /// </summary>
 /// <param name="provider">
 /// The provider.
 /// </param>
 /// <param name="repositoryFactory">
 /// The repository factory.
 /// </param>
 /// <param name="logger">
 /// The logger.
 /// </param>
 /// <param name="eventMessagesFactory">
 /// The event messages factory.
 /// </param>
 /// <param name="anonymousCustomerService">
 /// The anonymous customer service.
 /// </param>
 /// <param name="customerAddressService">
 /// The customer address service.
 /// </param>
 /// <param name="invoiceService">
 /// The invoice service.
 /// </param>
 /// <param name="paymentService">
 /// The payment service.
 /// </param>
 public CustomerService(
     IDatabaseUnitOfWorkProvider provider,
     RepositoryFactory repositoryFactory,
     ILogger logger,
     IEventMessagesFactory eventMessagesFactory,
     IAnonymousCustomerService anonymousCustomerService,
     ICustomerAddressService customerAddressService,
     IInvoiceService invoiceService,
     IPaymentService paymentService)
     : base(provider, repositoryFactory, logger, eventMessagesFactory)
 {
     Mandate.ParameterNotNull(anonymousCustomerService, "anonymousCustomerService");
     Mandate.ParameterNotNull(customerAddressService, "customerAddressService");
     Mandate.ParameterNotNull(invoiceService, "invoiceServie");
     Mandate.ParameterNotNull(paymentService, "paymentService");
     _anonymousCustomerService = anonymousCustomerService;
     _customerAddressService   = customerAddressService;
     _invoiceService           = invoiceService;
     _paymentService           = paymentService;
 }
示例#4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CustomerService"/> class.
        /// </summary>
        /// <param name="provider">
        /// The provider.
        /// </param>
        /// <param name="repositoryFactory">
        /// The repository factory.
        /// </param>
        /// <param name="anonymousCustomerService">
        /// The anonymous Customer Service.
        /// </param>
        /// <param name="customerAddressService">
        /// The customer Address Service.
        /// </param>
        /// <param name="invoiceService">
        /// The invoice Service.
        /// </param>
        /// <param name="paymentService">
        /// The payment Service.
        /// </param>
        public CustomerService(
            IDatabaseUnitOfWorkProvider provider,
            RepositoryFactory repositoryFactory,
            IAnonymousCustomerService anonymousCustomerService,
            ICustomerAddressService customerAddressService,
            IInvoiceService invoiceService,
            IPaymentService paymentService)
        {
            Mandate.ParameterNotNull(provider, "provider");
            Mandate.ParameterNotNull(repositoryFactory, "repositoryFactory");
            Mandate.ParameterNotNull(anonymousCustomerService, "anonymousCustomerService");
            Mandate.ParameterNotNull(customerAddressService, "customerAddressService");
            Mandate.ParameterNotNull(invoiceService, "invoiceServie");
            Mandate.ParameterNotNull(paymentService, "paymentService");

            _uowProvider              = provider;
            _repositoryFactory        = repositoryFactory;
            _anonymousCustomerService = anonymousCustomerService;
            _customerAddressService   = customerAddressService;
            _invoiceService           = invoiceService;
            _paymentService           = paymentService;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ScheduledTasksApiController"/> class. 
 /// </summary>
 /// <param name="merchelloContext">
 /// The <see cref="IMerchelloContext"/>
 /// </param>
 public ScheduledTasksApiController(IMerchelloContext merchelloContext)
 {
     Mandate.ParameterNotNull(merchelloContext, "merchelloContext");
     _anonymousCustomerService = ((ServiceContext)merchelloContext.Services).AnonymousCustomerService;
 }
示例#6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ScheduledTasksApiController"/> class.
 /// </summary>
 /// <param name="merchelloContext">
 /// The <see cref="IMerchelloContext"/>
 /// </param>
 public ScheduledTasksApiController(IMerchelloContext merchelloContext)
 {
     Mandate.ParameterNotNull(merchelloContext, "merchelloContext");
     _anonymousCustomerService = ((ServiceContext)merchelloContext.Services).AnonymousCustomerService;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="merchelloContext"></param>
 public ScheduledTasksApiController(MerchelloContext merchelloContext)
     : base()
 {
     _anonymousCustomerService = ((ServiceContext)merchelloContext.Services).AnonymousCustomerService;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="merchelloContext"></param>
 public ScheduledTasksApiController(MerchelloContext merchelloContext)
     : base()
 {
     _anonymousCustomerService = ((ServiceContext)merchelloContext.Services).AnonymousCustomerService;
 }
示例#9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CustomerService"/> class.
 /// </summary>
 /// <param name="repositoryFactory">
 /// The repository factory.
 /// </param>
 /// <param name="anonymousCustomerService">
 /// The anonymous Customer Service.
 /// </param>
 /// <param name="customerAddressService">
 /// The customer Address Service.
 /// </param>
 /// <param name="invoiceService">
 /// The invoice Service.
 /// </param>
 /// <param name="paymentService">
 /// The payment Service.
 /// </param>
 public CustomerService(
     RepositoryFactory repositoryFactory, 
     IAnonymousCustomerService anonymousCustomerService, 
     ICustomerAddressService customerAddressService,
     IInvoiceService invoiceService,
     IPaymentService paymentService)
     : this(new PetaPocoUnitOfWorkProvider(), 
     repositoryFactory, 
     anonymousCustomerService, 
     customerAddressService,
     invoiceService,
     paymentService)
 {
 }
示例#10
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CustomerService"/> class.
        /// </summary>
        /// <param name="provider">
        /// The provider.
        /// </param>
        /// <param name="repositoryFactory">
        /// The repository factory.
        /// </param>
        /// <param name="anonymousCustomerService">
        /// The anonymous Customer Service.
        /// </param>
        /// <param name="customerAddressService">
        /// The customer Address Service.
        /// </param>
        /// <param name="invoiceService">
        /// The invoice Service.
        /// </param>
        /// <param name="paymentService">
        /// The payment Service.
        /// </param>
        public CustomerService(
            IDatabaseUnitOfWorkProvider provider, 
            RepositoryFactory repositoryFactory, 
            IAnonymousCustomerService anonymousCustomerService, 
            ICustomerAddressService customerAddressService, 
            IInvoiceService invoiceService,
            IPaymentService paymentService)
        {
            Mandate.ParameterNotNull(provider, "provider");
            Mandate.ParameterNotNull(repositoryFactory, "repositoryFactory");
            Mandate.ParameterNotNull(anonymousCustomerService, "anonymousCustomerService");
            Mandate.ParameterNotNull(customerAddressService, "customerAddressService");
            Mandate.ParameterNotNull(invoiceService, "invoiceServie");
            Mandate.ParameterNotNull(paymentService, "paymentService");

            _uowProvider = provider;
            _repositoryFactory = repositoryFactory;
            _anonymousCustomerService = anonymousCustomerService;
            _customerAddressService = customerAddressService;
            _invoiceService = invoiceService;
            _paymentService = paymentService;
        }