Пример #1
0
 public OrderController(IOrderAppService OrderAppService, IMemoryCache cache, INotificationHandler <DomainNotification> notifications)
 {
     _OrderAppService = OrderAppService;
     _cache           = cache;
     // 强类型转换
     _notifications = (DomainNotificationHandler)notifications;
 }
Пример #2
0
 public OrderController(
     IOrderAppService orderAppService,
     INotificationHandler <DomainNotification> notifications,
     IMediatorHandler mediator) : base(notifications, mediator)
 {
     _orderAppService = orderAppService;
 }
Пример #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;
 }
Пример #5
0
 public OrderItemAppService(IRepository <Models.OrderItem, Guid> repository,
                            IProductAppService productAppService,
                            IOrderAppService orderAppService)
 {
     _repository        = repository;
     _productAppService = productAppService;
     _orderAppService   = orderAppService;
 }
Пример #6
0
 public OrderController(IOrderAppService orderService,
                        ICustomerAppService customerService,
                        IProductAppService productService)
 {
     _orderService    = orderService;
     _customerService = customerService;
     _productService  = productService;
 }
Пример #7
0
 public OrderController(ICustomerAppService customerAppService, IOrderAppService orderAppService,
                        IProductAppService productAppService, IMapper mapper)
 {
     this.customerAppService = customerAppService;
     this.orderAppService    = orderAppService;
     this.productAppService  = productAppService;
     this.mapper             = mapper;
 }
Пример #8
0
 public PayController(
     IOrderAppService orderAppService,
     IRepository <Order> orderRepository,
     IRepository <UserLogin, long> userLoginRepository)
 {
     _orderAppService     = orderAppService;
     _orderRepository     = orderRepository;
     _userLoginRepository = userLoginRepository;
 }
Пример #9
0
 public ClientDemoService(
     IOrderAppService orderAppService,
     IIdentityModelAuthenticationService authenticationService,
     IConfiguration configuration)
 {
     _orderAppService       = orderAppService;
     _authenticationService = authenticationService;
     _configuration         = configuration;
 }
Пример #10
0
 public CapEventSubscriber(
     IOrderAppService orderSrv,
     ILogger <CapEventSubscriber> logger,
     MessageTrackerFactory trackerFactory)
 {
     _orderSrv = orderSrv;
     _logger   = logger;
     _tracker  = trackerFactory.Create();
 }
Пример #11
0
 public PaymentAppService(
     IDistributedEventBus distributedEventBus,
     IOrderAppService orderAppService,
     IPaymentRepository repository) : base(repository)
 {
     _distributedEventBus = distributedEventBus;
     _orderAppService     = orderAppService;
     _repository          = repository;
 }
Пример #12
0
 public ProductController(IProductAppService productAppService1,
                          IProductAppService productAppService2,
                          IOrderAppService orderAppService1,
                          IOrderAppService orderAppService2,
                          ITransientTestAppService transientTestAppService1,
                          ITransientTestAppService transientTestAppService2,
                          IHostApplicationLifetime lifetime)
 {
     _lifetime = lifetime;
 }
Пример #13
0
 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;
 }
Пример #14
0
 public PaymentAppService(
     IPayableChecker payableChecker,
     IDistributedEventBus distributedEventBus,
     IOrderAppService orderAppService,
     IPaymentRepository repository) : base(repository)
 {
     _payableChecker      = payableChecker;
     _distributedEventBus = distributedEventBus;
     _orderAppService     = orderAppService;
     _repository          = repository;
 }
Пример #15
0
 public IndexModel(
     IOrderAppService orderAppService,
     IStoreAppService storeAppService,
     IProductAppService productAppService,
     IAccountAppService accountAppService)
 {
     _orderAppService   = orderAppService;
     _storeAppService   = storeAppService;
     _productAppService = productAppService;
     _accountAppService = accountAppService;
 }
Пример #16
0
 public OrderJob(ProductManager productManager,
                 OrderManager orderManager,
                 CartManager cartManager,
                 UserManager userManager,
                 IOrderAppService orderService)
 {
     _productManager = productManager;
     _orderManager   = orderManager;
     _cartManager    = cartManager;
     _userManager    = userManager;
     _orderService   = orderService;
 }
Пример #17
0
 public OrderFactory(IOrderAppService appService,
                     IAddressAppService addressAppService,
                     ICustomerAppService customerAppService,
                     ICompanyAppService companyAppService,
                     IPaymentTypeAppService paymentTypeAppService)
 {
     _appService            = appService;
     _addressAppService     = addressAppService;
     _customerAppService    = customerAppService;
     _companyAppService     = companyAppService;
     _paymentTypeAppService = paymentTypeAppService;
 }
Пример #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;
 }
Пример #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;
 }
Пример #20
0
 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;
 }
Пример #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>();
 }
Пример #22
0
        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>();
        }
Пример #23
0
 public OrderController(IOrderAppService service)
 {
     _service = service;
 }
Пример #24
0
 public ShoppingCart(ICartAppService cartAppService, IOrderDetailAppService orderDetailAppService, IOrderAppService orderAppService)
 {
     _cartAppService = cartAppService;
     _orderDetailAppService = orderDetailAppService;
     _orderAppService = orderAppService;
 }
Пример #25
0
 public OrderController(IOrderAppService orderAppService)
 {
     _orderAppService = orderAppService;
 }
Пример #26
0
 public OrderController(IOrderAppService OrderAppService, INotificationHandler <DomainNotification> notification)
 {
     _OrderAppService = OrderAppService;
     _notification    = (DomainNotificationHandler)notification;
 }
Пример #27
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public WarehouseQtyBlockedEventSubscriber(IOrderAppService orderAppSrv)
 {
     _orderAppSrv = orderAppSrv;
 }
Пример #28
0
 public CheckoutController(IOrderAppService orderAppService)
 {
     _orderAppService = orderAppService;
 }
Пример #29
0
 public OrdersController(UserManager <EllegiaUser> userManager, IOrderAppService orderAppService)
 {
     _orderAppService = orderAppService;
     _userManager     = userManager;
 }
Пример #30
0
 public OrderController(IOrderAppService OrderAppService)
 {
     _OrderAppService = OrderAppService;
 }
        public void Setup()
        {
            var orderRepository = new Repository <OrderManagement.Core.Order.Order>(OrderManagementInMemoryDbContext);

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