private IWalletQueryService _walletQueryService; //Q 端 public IncentiveJob() { var container = (ObjectContainer.Current as AutofacObjectContainer).Container; _commandService = container.Resolve <ICommandService>(); _walletQueryService = container.Resolve <IWalletQueryService>(); }
private IWalletQueryService _walletQueryService; //Q 端 public WithdrawClearWeekAmountJob() { var container = (ObjectContainer.Current as AutofacObjectContainer).Container; _commandService = container.Resolve <ICommandService>(); _walletQueryService = container.Resolve <IWalletQueryService>(); }
/// <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; }
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); }
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); }
public BenevolenceIndexController(ICommandService commandService, IContextService contextService, IStoreQueryService storeQueryService, IWalletQueryService walletQueryService, IBenevolenceIndexQueryService benevolenceIndexQueryService ) : base(commandService, contextService) { _storeQueryService = storeQueryService; _walletQueryService = walletQueryService; _benevolenceIndexQueryService = benevolenceIndexQueryService; }
public HoldingsService(ITransactionQueryService transactionQueryService, IHoldingsProcessor holdingsProcessor, IStockService stockService, IWalletQueryService walletQueryService) { _transactionQueryService = transactionQueryService; _holdingsProcessor = holdingsProcessor; _stockService = stockService; _walletQueryService = walletQueryService; }
public StatisticsController(ICommandService commandService, IUserQueryService userQueryService, IWalletQueryService walletQueryService, IStoreOrderQueryService storeOrderQueryService, IStoreQueryService storeQueryService, IBenevolenceIndexQueryService benevolenceIndexQueryService) { _userQueryService = userQueryService; _walletQueryService = walletQueryService; _storeOrderQueryService = storeOrderQueryService; _storeQueryService = storeQueryService; _benevolenceIndexQueryService = benevolenceIndexQueryService; }
/// <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; }
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; }
public TransactionService(IWalletQueryService walletQueryService, ITransactionQueryService transactionQueryService) { _walletQueryService = walletQueryService; _transactionQueryService = transactionQueryService; }
public CreateUserService(IWalletQueryService walletQueryService, IUserQueryService dbQueryService) { _walletQueryService = walletQueryService; _userQueryService = dbQueryService; }