コード例 #1
0
 public SharesRepositoryTests(string connectionString)
 {
     ConnectionString  = connectionString;
     _usersRepository  = new UsersRepository(ConnectionString);
     _filesRepository  = new FilesRepository(ConnectionString);
     _sharesRepository = new SharesRepository(ConnectionString);
 }
コード例 #2
0
 public TransactionsService(ITransactionsRepository transactionsRepository,
                            ITradersRepository tradersRepository, ISharesRepository sharesRepository, IPortfoliosRepository portfoliosRepository)
 {
     this.transactionsRepository = transactionsRepository;
     this.tradersRepository      = tradersRepository;
     this.sharesRepository       = sharesRepository;
     this.portfoliosRepository   = portfoliosRepository;
 }
コード例 #3
0
ファイル: QueryableSharesHub.cs プロジェクト: NickDarvey/Qx
 public QueryableStocksHub(
     ISharesRepository sharesRepository,
     ISharesChangeFeed sharesChangeFeed,
     IQxService qxService) : base(qxService)
 {
     _sharesRepository = sharesRepository;
     _sharesChangeFeed = sharesChangeFeed;
 }
コード例 #4
0
ファイル: SharesHub.cs プロジェクト: NickDarvey/Qx
        public StocksHub(
            ISharesRepository sharesRepository,
            ISharesChangeFeed sharesChangeFeed)

        {
            _sharesRepository = sharesRepository;
            _sharesChangeFeed = sharesChangeFeed;
        }
コード例 #5
0
 public BlockOfSharesManager(
     IBlockOfSharesRepository blockOfSharesRepository,
     IClientRepository clientRepository,
     ISharesRepository shareRepository)
 {
     this.blockOfSharesRepository = blockOfSharesRepository;
     this.clientRepository        = clientRepository;
     this.shareRepository         = shareRepository;
 }
コード例 #6
0
 public TransactionManager(
     IClientManager clientManager,
     IBlockOfSharesRepository blockOfSharesRepository,
     IClientRepository clientRepository,
     ISharesRepository sharesRepository,
     ITransactionRepository transactionRepository)
 {
     this.clientManager           = clientManager;
     this.blockOfSharesRepository = blockOfSharesRepository;
     this.clientRepository        = clientRepository;
     this.sharesRepository        = sharesRepository;
     this.transactionRepository   = transactionRepository;
 }
コード例 #7
0
 public SharesController()
 {
     _filesRepository  = new FilesRepository(ConnectionString, _usersRepository);
     _sharesRepository = new SharesRepository(ConnectionString, _filesRepository);
 }
コード例 #8
0
 public ShareManager(ISharesRepository sharesRepository)
 {
     this.sharesRepository = sharesRepository;
 }
コード例 #9
0
 public SharesService(ISharesRepository shareRepository)
 {
     this.shareRepository = shareRepository;
 }
コード例 #10
0
 public ValidationService(IClientRepository clientRepository, ISharesRepository sharesRepository, IPortfolioRepository portfolioRepository)
 {
     this.clientRepository    = clientRepository;
     this.sharesRepository    = sharesRepository;
     this.portfolioRepository = portfolioRepository;
 }
コード例 #11
0
 public UnitOfWork(SharesContext context, ISharesRepository sharesRepository)
 {
     SharesRepository = sharesRepository;
     _context         = context;
 }
コード例 #12
0
 public SharesRepositoryTests()
 {
     _filesRepository  = new FilesRepository(ConnectionString, _usersRepository);
     _sharesRepository = new SharesRepository(ConnectionString, _usersRepository, _filesRepository);
 }
コード例 #13
0
 public UnitOfWork(PSCContext context, IPortfolioRepository portfolioRepository, ISharesRepository sharesRepository)
 {
     PortfolioRepository = portfolioRepository;
     SharesRepository    = sharesRepository;
     _context            = context;
 }
コード例 #14
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="connectionString"></param>
 public UsersController(string connectionString)
 {
     _sharesRepository = new SharesRepository(connectionString);
     _usersRepository  = new UsersRepository(connectionString);
     _filesRepository  = new FilesRepository(connectionString);
 }