Beispiel #1
0
 public OrderController(IOrderAppService OrderAppService, IMemoryCache cache, INotificationHandler <DomainNotification> notifications)
 {
     _OrderAppService = OrderAppService;
     _cache           = cache;
     // 强类型转换
     _notifications = (DomainNotificationHandler)notifications;
 }
 public OrderController(
     IOrderAppService orderAppService,
     INotificationHandler <DomainNotification> notifications,
     IMediatorHandler mediator) : base(notifications, mediator)
 {
     _orderAppService = orderAppService;
 }
Beispiel #3
0
 public OrdersController(IOrderAppService orderAppService, ILookupAppService lookupAppService, IAbpSession session, ISubSalesRepAppService subSalesRepAppService)
 {
     _orderAppService       = orderAppService;
     _lookupAppService      = lookupAppService;
     _session               = session;
     _subSalesRepAppService = subSalesRepAppService;
 }
 public OrderController(
     IOrderAppService orderAppService,
     IDeliveryChargeAppService deliveryChargeAppService)
 {
     DeliveryChargeAppService = deliveryChargeAppService;
     OrderAppService          = orderAppService;
 }
Beispiel #5
0
 public OrderItemAppService(IRepository <Models.OrderItem, Guid> repository,
                            IProductAppService productAppService,
                            IOrderAppService orderAppService)
 {
     _repository        = repository;
     _productAppService = productAppService;
     _orderAppService   = orderAppService;
 }
Beispiel #6
0
 public OrderController(IOrderAppService orderService,
                        ICustomerAppService customerService,
                        IProductAppService productService)
 {
     _orderService    = orderService;
     _customerService = customerService;
     _productService  = productService;
 }
Beispiel #7
0
 public OrderController(ICustomerAppService customerAppService, IOrderAppService orderAppService,
                        IProductAppService productAppService, IMapper mapper)
 {
     this.customerAppService = customerAppService;
     this.orderAppService    = orderAppService;
     this.productAppService  = productAppService;
     this.mapper             = mapper;
 }
Beispiel #8
0
 public PayController(
     IOrderAppService orderAppService,
     IRepository <Order> orderRepository,
     IRepository <UserLogin, long> userLoginRepository)
 {
     _orderAppService     = orderAppService;
     _orderRepository     = orderRepository;
     _userLoginRepository = userLoginRepository;
 }
Beispiel #9
0
 public ClientDemoService(
     IOrderAppService orderAppService,
     IIdentityModelAuthenticationService authenticationService,
     IConfiguration configuration)
 {
     _orderAppService       = orderAppService;
     _authenticationService = authenticationService;
     _configuration         = configuration;
 }
Beispiel #10
0
 public CapEventSubscriber(
     IOrderAppService orderSrv,
     ILogger <CapEventSubscriber> logger,
     MessageTrackerFactory trackerFactory)
 {
     _orderSrv = orderSrv;
     _logger   = logger;
     _tracker  = trackerFactory.Create();
 }
Beispiel #11
0
 public PaymentAppService(
     IDistributedEventBus distributedEventBus,
     IOrderAppService orderAppService,
     IPaymentRepository repository) : base(repository)
 {
     _distributedEventBus = distributedEventBus;
     _orderAppService     = orderAppService;
     _repository          = repository;
 }
Beispiel #12
0
 public ProductController(IProductAppService productAppService1,
                          IProductAppService productAppService2,
                          IOrderAppService orderAppService1,
                          IOrderAppService orderAppService2,
                          ITransientTestAppService transientTestAppService1,
                          ITransientTestAppService transientTestAppService2,
                          IHostApplicationLifetime lifetime)
 {
     _lifetime = lifetime;
 }
 public HomeFactory(IRepository <Models.Customer, Guid> repository,
                    IRepository <User, long> userRepository,
                    IRepository <Models.Product, Guid> productRepository,
                    IOrderAppService orderAppService
                    )
 {
     _repository        = repository;
     _userRepository    = userRepository;
     _productRepository = productRepository;
     _orderAppService   = orderAppService;
 }
Beispiel #14
0
 public PaymentAppService(
     IPayableChecker payableChecker,
     IDistributedEventBus distributedEventBus,
     IOrderAppService orderAppService,
     IPaymentRepository repository) : base(repository)
 {
     _payableChecker      = payableChecker;
     _distributedEventBus = distributedEventBus;
     _orderAppService     = orderAppService;
     _repository          = repository;
 }
Beispiel #15
0
 public IndexModel(
     IOrderAppService orderAppService,
     IStoreAppService storeAppService,
     IProductAppService productAppService,
     IAccountAppService accountAppService)
 {
     _orderAppService   = orderAppService;
     _storeAppService   = storeAppService;
     _productAppService = productAppService;
     _accountAppService = accountAppService;
 }
 public OrderJob(ProductManager productManager,
                 OrderManager orderManager,
                 CartManager cartManager,
                 UserManager userManager,
                 IOrderAppService orderService)
 {
     _productManager = productManager;
     _orderManager   = orderManager;
     _cartManager    = cartManager;
     _userManager    = userManager;
     _orderService   = orderService;
 }
 public OrderFactory(IOrderAppService appService,
                     IAddressAppService addressAppService,
                     ICustomerAppService customerAppService,
                     ICompanyAppService companyAppService,
                     IPaymentTypeAppService paymentTypeAppService)
 {
     _appService            = appService;
     _addressAppService     = addressAppService;
     _customerAppService    = customerAppService;
     _companyAppService     = companyAppService;
     _paymentTypeAppService = paymentTypeAppService;
 }
Beispiel #18
0
 public OrderController(IOrderAppService orderAppService,
                         ITableServiceAppService tableServiceAppService,
                         IDishAppService dishAppService,
                         IOptionAppService optionAppService,
                         ICategoryAppService categoryAppService)
 {
     this.orderAppService = orderAppService;
     this.tableServiceAppService = tableServiceAppService;
     this.dishAppService = dishAppService;
     this.optionAppService = optionAppService;
     this.categoryAppService = categoryAppService;
 }
Beispiel #19
0
 public RefundAppService(
     IOrderAppService orderAppService,
     IDistributedEventBus distributedEventBus,
     IPaymentRepository paymentRepository,
     IJsonSerializer jsonSerializer,
     IRefundRepository repository) : base(repository)
 {
     _orderAppService     = orderAppService;
     _distributedEventBus = distributedEventBus;
     _paymentRepository   = paymentRepository;
     _jsonSerializer      = jsonSerializer;
     _repository          = repository;
 }
 public SYQWXController(IWechatAppConfigAppService wechatAppConfigAppService,
                        IWeChatOAuthAppService weChatOAuthAppService,
                        IWeChatUserAppService weChatUserAppService,
                        IOrderAppService orderAppService,
                        IActivityAppService activityAppService
                        ) : base(wechatAppConfigAppService)
 {
     InitAppConfigSetting();
     _weChatOAuthAppService = weChatOAuthAppService;
     _weChatOAuthAppService.WechatAppConfig = WechatAppConfig;//注入配置
     _weChatUserAppService = weChatUserAppService;
     _orderAppService      = orderAppService;
     _activityAppService   = activityAppService;
 }
Beispiel #21
0
 public PaymentData()
     : base("UniCloud.Application.PaymentBC.DTO", UniContainer.Resolve<IQueryableUnitOfWork>())
 {
     _creditNoteAppService = UniContainer.Resolve<ICreditNoteAppService>();
     _currencyAppService = UniContainer.Resolve<ICurrencyAppService>();
     _leaseInvoiceAppService = UniContainer.Resolve<ILeaseInvoiceAppService>();
     _prepaymentInvoiceAppService = UniContainer.Resolve<IPrepaymentInvoiceAppService>();
     _purchaseInvoiceAppService = UniContainer.Resolve<IPurchaseInvoiceAppService>();
     _maintainInvoiceAppService = UniContainer.Resolve<IMaintainInvoiceAppService>();
     _contractAircraftAppService = UniContainer.Resolve<IContractAircraftAppService>();
     _contractEngineAppService = UniContainer.Resolve<IContractEngineAppService>();
     _orderAppService = UniContainer.Resolve<IOrderAppService>();
     _paymentScheduleAppService = UniContainer.Resolve<IPaymentScheduleAppService>();
     _paymentNoticeAppService = UniContainer.Resolve<IPaymentNoticeAppService>();
     _guaranteeAppService = UniContainer.Resolve<IGuaranteeAppService>();
     _maintainContractAppService = UniContainer.Resolve<IMaintainContractAppService>();
     _supplierAppService = UniContainer.Resolve<ISupplierAppService>();
     _maintainCostAppService = UniContainer.Resolve<IMaintainCostAppService>();
 }
        public OrderServiceTest()
        {
            //var sqlConnectionStringBuilder = new SqlConnectionStringBuilder
            //{
            //    DataSource = "(local)",
            //    InitialCatalog = "GameId",
            //    UserID = "sa",
            //    Password = "******"
            //};

            var mockSecurityService = new Mock <ISecurityService>();

            mockSecurityService.Setup(foo => foo.IsExistsBlackList("us001")).Returns(false);

            var serviceProvider = new ServiceCollection()
                                  .AddLogging()
                                  .AddHttpClient()
                                  .AddMediatR()
                                  .AddScoped <IBizofferAppService, BizofferAppService>()
                                  .AddScoped <IBizofferRepository, BizofferRepository>()
                                  .AddScoped <IOrderAppService, OrderAppService>()
                                  .AddScoped <IPlaceOrderService, PlaceOrderService>()
                                  .AddScoped <IBizofferService, BizofferServiceClient>()
                                  .AddScoped <ISellerRepository, SellerRepository>()
                                  //.AddScoped<ISecurityService,SecurityServiceClient>()
                                  .AddScoped(typeof(ISecurityService), sp => mockSecurityService.Object)
                                  .AddScoped <IOrderRepository, OrderRepository>()
                                  .AddScoped <IUnitOfWork, UnitOfWork>()
                                  .AddDbContext <GameId.Infrastructure.AppContext>(options =>
            {
                //options.UseSqlServer(sqlConnectionStringBuilder.ConnectionString);
            })
                                  .BuildServiceProvider();

            orderAppService   = serviceProvider.GetService <IOrderAppService>();
            placeOrderService = serviceProvider.GetService <IPlaceOrderService>();
        }
Beispiel #23
0
 public OrderController(IOrderAppService service)
 {
     _service = service;
 }
Beispiel #24
0
 public ShoppingCart(ICartAppService cartAppService, IOrderDetailAppService orderDetailAppService, IOrderAppService orderAppService)
 {
     _cartAppService = cartAppService;
     _orderDetailAppService = orderDetailAppService;
     _orderAppService = orderAppService;
 }
Beispiel #25
0
 public OrderController(IOrderAppService orderAppService)
 {
     _orderAppService = orderAppService;
 }
Beispiel #26
0
 public OrderController(IOrderAppService OrderAppService, INotificationHandler <DomainNotification> notification)
 {
     _OrderAppService = OrderAppService;
     _notification    = (DomainNotificationHandler)notification;
 }
Beispiel #27
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public WarehouseQtyBlockedEventSubscriber(IOrderAppService orderAppSrv)
 {
     _orderAppSrv = orderAppSrv;
 }
Beispiel #28
0
 public CheckoutController(IOrderAppService orderAppService)
 {
     _orderAppService = orderAppService;
 }
Beispiel #29
0
 public OrdersController(UserManager <EllegiaUser> userManager, IOrderAppService orderAppService)
 {
     _orderAppService = orderAppService;
     _userManager     = userManager;
 }
Beispiel #30
0
 public OrderController(IOrderAppService OrderAppService)
 {
     _OrderAppService = OrderAppService;
 }
        public void Setup()
        {
            var orderRepository = new Repository <OrderManagement.Core.Order.Order>(OrderManagementInMemoryDbContext);

            _orderService = new OrderAppService(orderRepository);
        }
Beispiel #32
0
 public OrderAppServiceTests()
 {
     _orderAppService = GetRequiredService <IOrderAppService>();
 }
Beispiel #33
0
 public OrderController(IOrderAppService orderSrv)
 {
     _orderSrv = orderSrv;
 }
Beispiel #34
0
 public MultiLingual_Mapping_Tests()
 {
     _productAppService = Resolve <IProductAppService>();
     _orderAppService   = Resolve <IOrderAppService>();
     Resolve <IMultiTenancyConfig>().IsEnabled = true;
 }