public TradingOperationService(IClientService clientService, IClientsSharesService clientsSharesService, TransactionHistoryService operationHistoryService, BalanceService balanceService) { this.clientService = clientService; this.clientsSharesService = clientsSharesService; this.operationHistoryService = operationHistoryService; this.balanceService = balanceService; }
public TradingInteractiveService(IPhraseProvider phraseProvider, IIOProvider ioProvider, ILogger logger, IValidator validator, IClientService clientService, IShareService shareService, IClientsSharesService clientsSharesService) { this.phraseProvider = phraseProvider; this.ioProvider = ioProvider; this.logger = logger; this.validator = validator; this.clientService = clientService; this.shareService = shareService; this.clientsSharesService = clientsSharesService; }
public void Initialize() { clientService = Substitute.For <IClientService>(); shareService = Substitute.For <IShareService>(); clientsSharesService = Substitute.For <IClientsSharesService>(); shareService.GetAllShares().Returns(new List <ShareEntity>() { new ShareEntity() { ShareID = 1, ShareCost = 10 } }); }
public SharesController(IClientsSharesService shareService) { this.shareService = shareService; }
public TradingOperationService(IClientService clientService, IShareService shareService, IClientsSharesService clientsSharesService) { this.clientService = clientService; this.shareService = shareService; this.clientsSharesService = clientsSharesService; }