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

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