Ejemplo n.º 1
0
 public ViewResponse(Page page, int id, IFormAppService formAppService, ICustomerAppService customerAppService)
 {
     _page               = page;
     _id                 = id;
     _formAppService     = formAppService;
     _customerAppService = customerAppService;
 }
 public HomeController(ISessionAppService sessionAppService,
                       IStockAppService stockService,
                       IBadStockAppService badStockService,
                       ISalesmanAppService salesmaService,
                       ISupplierAppService supplierService,
                       ICustomerAppService customerAppService,
                       IProductAppService productAppService,
                       IInvoiceAppService invoiceAppService,
                       ICreditMemoAppService creditMemoAppService,
                       IDebitMemoAppService debitMemoAppService,
                       IPurchaseOrderAppService purchaseOrderAppService,
                       IVanAppService vanAppService,
                       IVanStockAppService vanStockAppService
                       )
 {
     _sessionAppService       = sessionAppService;
     _stockService            = stockService;
     _badStockService         = badStockService;
     _salesmaService          = salesmaService;
     _supplierService         = supplierService;
     _customerAppService      = customerAppService;
     _productAppService       = productAppService;
     _invoiceAppService       = invoiceAppService;
     _creditMemoAppService    = creditMemoAppService;
     _debitMemoAppService     = debitMemoAppService;
     _purchaseOrderAppService = purchaseOrderAppService;
     _vanAppService           = vanAppService;
     _vanStockAppService      = vanStockAppService;
 }
Ejemplo n.º 3
0
 public CustomersController(ICustomerAppService customerApp,
                            IUserAppService userApp,
                            ILogger <CustomersController> logger)
     : base(userApp, logger)
 {
     __customerApp = customerApp;
 }
Ejemplo n.º 4
0
 public CustomerController(
     ICustomerAppService customerAppService,
     INotificationHandler <DomainNotification> notifications,
     IMediatorHandler mediator) : base(notifications, mediator)
 {
     _customerAppService = customerAppService;
 }
        public CRMService(ICustomerAppService customerAppService)
        {
            if (customerAppService == null)
                throw new ArgumentNullException("customerAppService");

            _customerAppService = customerAppService;
        }
Ejemplo n.º 6
0
 public CustomerAccountController(
     ICustomerAppService customerAppService,
     ICustomerAccountAppService customerAccountAppService)
 {
     CustomerAccountAppService = customerAccountAppService;
     CustomerAppService        = customerAppService;
 }
Ejemplo n.º 7
0
 public CustomerController(ICustomerAppService CustomerAppService, IQuotationAppService QuotationAppService, ICustomerRepository CustomerRepository, IHostingEnvironment hostingEnvironment)
 {
     _CustomerAppService  = CustomerAppService;
     _customerRepository  = CustomerRepository;
     _hostingEnvironment  = hostingEnvironment;
     _QuotationAppService = QuotationAppService;
 }
Ejemplo n.º 8
0
 public CustomersController(ICustomerAppService customerAppService, IGenericAppService genericAppService, ITitleAppService titleAppService, IRepository <Invoice, long> invoiceRepository, IRepository <InvoicePayment, long> invoicePaymentRepository)
 {
     this._customerAppService       = customerAppService;
     this._genericAppService        = genericAppService;
     this._titleAppService          = titleAppService;
     this._invoiceRepository        = invoiceRepository;
     this._invoicePaymentRepository = invoicePaymentRepository;
 }
 public CustomerController(ICustomerAppService customerAppService = null,
                           IAccountAppService accountAppService   = null,
                           IMapper mapper = null)
 {
     _customerAppService = customerAppService;
     _accountAppService  = accountAppService;
     _mapper             = mapper;
 }
Ejemplo n.º 10
0
 public OrderController(ICustomerAppService customerAppService, IOrderAppService orderAppService,
                        IProductAppService productAppService, IMapper mapper)
 {
     this.customerAppService = customerAppService;
     this.orderAppService    = orderAppService;
     this.productAppService  = productAppService;
     this.mapper             = mapper;
 }
 public CustomerController(ILogger <CustomerController> logger,
                           IMapper mapper,
                           ICustomerAppService service)
 {
     _logger  = logger;
     _mapper  = mapper;
     _service = service;
 }
Ejemplo n.º 12
0
 public OrdersController(IOrderHeadAppService ordheadAppservice, IOrderDetailsAppService orddetailsAppservice, IProductAppService proAppservice, ICustomerAppService cusAppservice, ErpDemoDBContext context)
 {
     _ordheadAppservice    = ordheadAppservice;
     _orddetailsAppservice = orddetailsAppservice;
     _proAppservice        = proAppservice;
     _cusAppservice        = cusAppservice;
     _context = context;
 }
Ejemplo n.º 13
0
 public OrderController(IOrderAppService orderService,
                        ICustomerAppService customerService,
                        IProductAppService productService)
 {
     _orderService    = orderService;
     _customerService = customerService;
     _productService  = productService;
 }
Ejemplo n.º 14
0
 public CapEventSubscriber(
     ICustomerAppService customerSrv,
     ILogger <CapEventSubscriber> logger,
     MessageTrackerFactory trackerFactory)
 {
     _customerSrv = customerSrv;
     _logger      = logger;
     _tracker     = trackerFactory.Create();
 }
Ejemplo n.º 15
0
 public CategoryController(
     ISlideShowAppService slideShowAppService,
     ICategoryAppService categoryAppService,
     ICustomerAppService customerAppService)
 {
     CategoryAppService = categoryAppService;
     CustomerAppService = customerAppService;
     // slideShowAppService.SaveAsync(null).GetAwaiter();
 }
Ejemplo n.º 16
0
        public CRMService(ICustomerAppService customerAppService)
        {
            if (customerAppService == null)
            {
                throw new ArgumentNullException("customerAppService");
            }

            _customerAppService = customerAppService;
        }
Ejemplo n.º 17
0
      /// <summary>
      ///    Create a new instance ERP Module Service
      /// </summary>
      /// <param name="customerAppService">The customer app service dependency</param>
      /// <param name="salesAppService">The sales app service dependency</param>
      public ErpModuleService(ICustomerAppService customerAppService, ISalesAppService salesAppService)
      {
         if (customerAppService == null) { throw new ArgumentNullException("customerAppService"); }

         if (salesAppService == null) { throw new ArgumentNullException("salesAppService"); }

         _customerAppService = customerAppService;
         _salesAppService = salesAppService;
      }
Ejemplo n.º 18
0
 public AuthController(IOptions <AppSettings> appSettings,
                       UserManager <ApplicationUser> userManager,
                       SignInManager <ApplicationUser> signInManager,
                       ICustomerAppService customerAppService)
 {
     _appSettings        = appSettings.Value;
     _userManager        = userManager;
     _signInManager      = signInManager;
     _customerAppService = customerAppService;
 }
 public CustomerController(ISessionAppService sessionAppService,
                           ICustomerAppService customerService,
                           ISalesmanAppService salesmanService,
                           IRetailEnvironmentAppService retailEnvService)
 {
     _sessionAppService = sessionAppService;
     _customerService   = customerService;
     _salesmanService   = salesmanService;
     _retailEnvService  = retailEnvService;
 }
Ejemplo n.º 20
0
 public CustomerController(ICustomerAppService cusService
                           , IMaintRpcService maintRpcServcie
                           , IHttpContextAccessor contextAccessor
                           , IAuthRpcService authRpcServices)
 {
     _maintRpcServcie = maintRpcServcie;
     _cusService      = cusService;
     _contextAccessor = contextAccessor;
     _authRpcServcie  = authRpcServices;
 }
Ejemplo n.º 21
0
 public AccountController(IAccountAppService accountAppService         = null,
                          ITransactionAppService transactionAppService = null,
                          ICustomerAppService customerAppService       = null,
                          IMapper mapper = null)
 {
     _accountAppService     = accountAppService;
     _transactionAppService = transactionAppService;
     _customerAppService    = customerAppService;
     _mapper = mapper;
 }
Ejemplo n.º 22
0
 public ExtruckSalesController(ISessionAppService sessionAppService,
                               ICustomerAppService customerService,
                               IProductAppService productService,
                               IExtruckSaleAppService extruckSaleService
                               )
 {
     _sessionAppService  = sessionAppService;
     _customerService    = customerService;
     _productService     = productService;
     _extruckSaleService = extruckSaleService;
 }
Ejemplo n.º 23
0
 public EstimatesController(IEstimateAppService estimateAppService, ISupplierAppService supplierAppService, ICustomerAppService customerAppServer, IBinaryObjectManager binaryObjectManager, IProductAppService productAppService, ITitleAppService titleAppService, IRepository <PaymentSetting, long> paymentSettingRepository, IRepository <TenantPaymentSettings, long> tenantPaymentSettingsRepository)
 {
     this._estimateAppService              = estimateAppService;
     this._supplierAppService              = supplierAppService;
     this._customerAppServer               = customerAppServer;
     this._binaryObjectManager             = binaryObjectManager;
     this._titleAppService                 = titleAppService;
     this._tenantPaymentSettingsRepository = tenantPaymentSettingsRepository;
     this._productAppService               = productAppService;
     this._paymentSettingRepository        = paymentSettingRepository;
 }
Ejemplo n.º 24
0
 public OrderFactory(IOrderAppService appService,
                     IAddressAppService addressAppService,
                     ICustomerAppService customerAppService,
                     ICompanyAppService companyAppService,
                     IPaymentTypeAppService paymentTypeAppService)
 {
     _appService            = appService;
     _addressAppService     = addressAppService;
     _customerAppService    = customerAppService;
     _companyAppService     = companyAppService;
     _paymentTypeAppService = paymentTypeAppService;
 }
Ejemplo n.º 25
0
 public ProductsController(IProductAppService productAppService, IPriceAppService priceAppService, ICustomerAppService customerAppService, ISpecificPriceAppService specificPriceAppService, ITaxRuleAppService taxRuleAppService, ISupplierAppService supplierAppService, IBinaryObjectManager binaryObjectManager, IOrganizationUnitAppService organizationUnitAppService, IRepository <ProductOption, long> productOptionRepository)
 {
     this._productAppService          = productAppService;
     this._priceAppService            = priceAppService;
     this._customerAppService         = customerAppService;
     this._specificPriceAppService    = specificPriceAppService;
     this._taxRuleAppService          = taxRuleAppService;
     this._supplierAppService         = supplierAppService;
     this._binaryObjectManager        = binaryObjectManager;
     this._organizationUnitAppService = organizationUnitAppService;
     this._productOptionRepository    = productOptionRepository;
 }
Ejemplo n.º 26
0
 public PayController(TenantSettingsAppService tenantSettingsAppService, IPayAppService paymentAppService, IInvoiceAppService invoiceAppService, ICustomerAppService customerAppService, IGenericAppService genericAppService, TenantManager tenantManager, IWebUrlService webUrlService, UserManager userManager, IUnitOfWorkManager unitOfWorkManager)
 {
     this._tenantSettingsAppService = tenantSettingsAppService;
     this._tenantManager            = tenantManager;
     this._webUrlService            = webUrlService;
     this._paymentAppService        = paymentAppService;
     this._invoiceAppService        = invoiceAppService;
     this._customerAppService       = customerAppService;
     this._genericAppService        = genericAppService;
     this._userManager       = userManager;
     this._unitOfWorkManager = unitOfWorkManager;
 }
    private static async Task <CustomerId> AddCustomerAsync(ICustomerAppService customerSvc)
    {
        var customerId = await customerSvc.AddAsync(
            "myCustomer",
            new AddressDto("line1", "line2", "city", "NC", "12345"),
            null,
            new PhoneNumberDto("19194122710")
            );

        Assert.IsNotNull(customerId);
        Assert.AreNotEqual(customerId, default);

        return(customerId);
    }
Ejemplo n.º 28
0
 public AuthController(SignInManager <IdentityUser> signInManager = null,
                       UserManager <IdentityUser> userManager     = null,
                       IOptions <AuthSettings> AuthSettings       = null,
                       IMapper mapper = null,
                       IAccountAppService accountAppService   = null,
                       ICustomerAppService customerAppService = null)
 {
     _signInManager      = signInManager;
     _userManager        = userManager;
     _authSettings       = AuthSettings.Value;
     _mapper             = mapper;
     _accountAppService  = accountAppService;
     _customerAppService = customerAppService;
 }
Ejemplo n.º 29
0
        /// <summary>
        ///    Create a new instance ERP Module Service
        /// </summary>
        /// <param name="customerAppService">The customer app service dependency</param>
        /// <param name="salesAppService">The sales app service dependency</param>
        public ErpModuleService(ICustomerAppService customerAppService, ISalesAppService salesAppService)
        {
            if (customerAppService == null)
            {
                throw new ArgumentNullException("customerAppService");
            }

            if (salesAppService == null)
            {
                throw new ArgumentNullException("salesAppService");
            }

            _customerAppService = customerAppService;
            _salesAppService    = salesAppService;
        }
 public BookingController(ISessionAppService sessionAppService,
                          ICustomerAppService customerService,
                          IProductAppService productService,
                          IBookingAppService bookingService,
                          IBookingDetailsAppService bookingDetailsService,
                          IStockAppService stockService
                          )
 {
     _sessionAppService     = sessionAppService;
     _customerService       = customerService;
     _productService        = productService;
     _bookingService        = bookingService;
     _bookingDetailsService = bookingDetailsService;
     _stockService          = stockService;
 }
Ejemplo n.º 31
0
 public InvoiceController(ISessionAppService sessionAppService,
                          ICustomerAppService customerService,
                          IProductAppService productService,
                          IInvoiceAppService invoiceAppService,
                          IInvoiceDetailsAppService invoiceDetailsAppService,
                          IStockAppService stockService
                          )
 {
     _sessionAppService        = sessionAppService;
     _customerService          = customerService;
     _productService           = productService;
     _invoiceAppService        = invoiceAppService;
     _invoiceDetailsAppService = invoiceDetailsAppService;
     _stockService             = stockService;
 }
 public OrderAppService(
     IRepository <Models.Order, Guid> repository,
     ICustomerAppService customerAppService,
     ICompanyAppService companyAppService,
     IPaymentTypeAppService paymentTypeAppService,
     IAddressAppService addressAppService,
     ISmtpEmailSenderConfiguration smtpConfig,
     ISmtpEmailSender smtpEmailSender)
 {
     _repository            = repository;
     _customerAppService    = customerAppService;
     _companyAppService     = companyAppService;
     _paymentTypeAppService = paymentTypeAppService;
     _addressAppService     = addressAppService;
     _smtpConfig            = smtpConfig;
     _smtpEmailSender       = smtpEmailSender;
 }
        public CustomerAppService_Tests_With_Mocks()
        {
            //Fake repository will contain 2 people
            var customers = new List<Customer>
                         {
                             new Customer {FirstName = "John", LastName = "Nash"},
                             new Customer {FirstName = "Forrest", LastName = "Gump"}
                         };

            //Create the fake person repository
            var customerRepository = new Mock<ICustomerRepository>();
            var insuranceRepository = new Mock<IRepository<Insurances.Insurance>>();

            //Arrange GetAll() method to return the list above
            customerRepository.Setup(client => client.GetAllListAsync()).Returns(Task.FromResult(customers));

            //Create PersonAppService by providing the fake repository
            _customerAppService = new CustomerAppService(customerRepository.Object, insuranceRepository.Object);
        }
Ejemplo n.º 34
0
 public SapSystemsController(ISapSystemAppService sapSystem, ICustomerAppService customerApp)
 {
     _sapSystemApp = sapSystem;
     _customerApp = customerApp;
 }
 public CustomerAppService_Tests()
 {
     this.customerAppService = Resolve<ICustomerAppService>();
 }
Ejemplo n.º 36
0
 //Parameterless Constructor
 //public CustomersController()
 //{ }
 public CustomersController(ICustomerAppService customerApp)
 {
     _customerApp = customerApp;
 }
Ejemplo n.º 37
0
 public CustomerController(ICustomerAppService appService)
 {
     _appService = appService;
 }
Ejemplo n.º 38
0
 public SapSUsersController(ISapSUserAppService sapSUserApp, ICustomerAppService customerApp)
 {
     _sapSUserApp = sapSUserApp;
     _customerApp = customerApp;
 }
Ejemplo n.º 39
0
 public CustomerAppService_Tests()
 {
     //Creating the class which is tested (SUT - Software Under Test)
     _customerAppService = LocalIocManager.Resolve<ICustomerAppService>();
 }
 public CustomerController()
 {
     _customerAppService = new CustomerAppService();
 }