예제 #1
0
        private IWalletQueryService _walletQueryService; //Q 端


        public IncentiveJob()
        {
            var container = (ObjectContainer.Current as AutofacObjectContainer).Container;

            _commandService     = container.Resolve <ICommandService>();
            _walletQueryService = container.Resolve <IWalletQueryService>();
        }
예제 #2
0
        private IWalletQueryService _walletQueryService; //Q 端

        public WithdrawClearWeekAmountJob()
        {
            var container = (ObjectContainer.Current as AutofacObjectContainer).Container;

            _commandService     = container.Resolve <ICommandService>();
            _walletQueryService = container.Resolve <IWalletQueryService>();
        }
예제 #3
0
 /// <summary>
 /// IOC 构造函数注入
 /// </summary>
 /// <param name="commandService"></param>
 /// <param name="conferenceQueryService"></param>
 public WalletController(ICommandService commandService, IContextService contextService,
                         IWalletQueryService walletQueryService,
                         IUserQueryService userQueryService) : base(commandService, contextService)
 {
     _walletQueryService = walletQueryService;
     _userQueryService   = userQueryService;
 }
예제 #4
0
        private IWalletQueryService _walletQueryService; //Q 端

        public ResetTodayStatisticJob()
        {
            var container = (ObjectContainer.Current as AutofacObjectContainer).Container;

            _commandService     = container.Resolve <ICommandService>();
            _walletQueryService = container.Resolve <IWalletQueryService>();
        }
        public void Setup()
        {
            _dbSessionService   = Substitute.For <IDbSessionService>();
            _walletQueryService = Substitute.For <IWalletQueryService>();
            _stockQueryService  = Substitute.For <IStockQueryService>();

            _sut = new SellStockService(_dbSessionService, _walletQueryService, _stockQueryService);
        }
예제 #6
0
        public void SetUp()
        {
            _walletQueryService = Substitute.For <IWalletQueryService>();

            _transactionQueryService = Substitute.For <ITransactionQueryService>();

            _sut = new TransactionService(_walletQueryService, _transactionQueryService);
        }
        public void SetUp()
        {
            _userQueryService = Substitute.For <IUserQueryService>();

            _walletQueryService = Substitute.For <IWalletQueryService>();

            _sut = new CreateUserService(_walletQueryService, _userQueryService);
        }
예제 #8
0
 public BenevolenceIndexController(ICommandService commandService, IContextService contextService,
                                   IStoreQueryService storeQueryService,
                                   IWalletQueryService walletQueryService,
                                   IBenevolenceIndexQueryService benevolenceIndexQueryService
                                   ) : base(commandService, contextService)
 {
     _storeQueryService            = storeQueryService;
     _walletQueryService           = walletQueryService;
     _benevolenceIndexQueryService = benevolenceIndexQueryService;
 }
예제 #9
0
 public HoldingsService(ITransactionQueryService transactionQueryService,
                        IHoldingsProcessor holdingsProcessor,
                        IStockService stockService,
                        IWalletQueryService walletQueryService)
 {
     _transactionQueryService = transactionQueryService;
     _holdingsProcessor       = holdingsProcessor;
     _stockService            = stockService;
     _walletQueryService      = walletQueryService;
 }
예제 #10
0
 public StatisticsController(ICommandService commandService,
                             IUserQueryService userQueryService,
                             IWalletQueryService walletQueryService,
                             IStoreOrderQueryService storeOrderQueryService,
                             IStoreQueryService storeQueryService,
                             IBenevolenceIndexQueryService benevolenceIndexQueryService)
 {
     _userQueryService             = userQueryService;
     _walletQueryService           = walletQueryService;
     _storeOrderQueryService       = storeOrderQueryService;
     _storeQueryService            = storeQueryService;
     _benevolenceIndexQueryService = benevolenceIndexQueryService;
 }
예제 #11
0
 /// <summary>
 /// IOC 构造函数注入
 /// </summary>
 /// <param name="commandService"></param>
 /// <param name="conferenceQueryService"></param>
 public UserController(ICommandService commandService, ISMSender smSender, IContextService contentService,
                       IUserQueryService userQueryService,
                       IWalletQueryService walletQueryService,
                       ICartQueryService cartQueryService,
                       IStoreQueryService storeQueryService,
                       IStoreOrderQueryService storeOrderQueryService) : base(commandService, contentService)
 {
     _smSender               = smSender;
     _userQueryService       = userQueryService;
     _walletQueryService     = walletQueryService;
     _cartQueryService       = cartQueryService;
     _storeQueryService      = storeQueryService;
     _storeOrderQueryService = storeOrderQueryService;
 }
예제 #12
0
        public void SetUp()
        {
            _transactionQueryService = Substitute.For <ITransactionQueryService>();

            _holdingsProcessor = Substitute.For <IHoldingsProcessor>();

            _stockService = Substitute.For <IStockService>();

            _walletQueryService = Substitute.For <IWalletQueryService>();

            _sut = new HoldingsService(_transactionQueryService,
                                       _holdingsProcessor,
                                       _stockService,
                                       _walletQueryService);
        }
 public SellStockService(IDbSessionService dbSessionService, IWalletQueryService walletQueryService, IStockQueryService stockQueryService)
 {
     _dbSessionService   = dbSessionService;
     _walletQueryService = walletQueryService;
     _stockQueryService  = stockQueryService;
 }
예제 #14
0
 public TransactionService(IWalletQueryService walletQueryService, ITransactionQueryService transactionQueryService)
 {
     _walletQueryService      = walletQueryService;
     _transactionQueryService = transactionQueryService;
 }
예제 #15
0
 public CreateUserService(IWalletQueryService walletQueryService, IUserQueryService dbQueryService)
 {
     _walletQueryService = walletQueryService;
     _userQueryService   = dbQueryService;
 }