Exemplo n.º 1
0
 public void SetUp()
 {
     authService      = MockRepository.GenerateStub <IAuthenticationService>();
     portfolioService = MockRepository.GenerateStub <IStockPortfolioService>();
     priceService     = MockRepository.GenerateStub <IStockPriceService>();
     broker           = new StockBroker(authService, portfolioService, priceService);
 }
Exemplo n.º 2
0
        public SearchSymbolCommand(ISearchSymbolViewModel viewModel, IStockPriceService stockPriceService)
        {
            _viewModel         = viewModel;
            _stockPriceService = stockPriceService;

            _viewModel.PropertyChanged += ViewModel_PropertyChanged;
        }
Exemplo n.º 3
0
 public MomentumStrategy(IStockListService stockListService, IStockPriceService stockPriceService, IStocksRepository stocksRepository, IMapper mapper)
 {
     _stockListService  = stockListService;
     _stockPriceService = stockPriceService;
     _stocksRepository  = stocksRepository;
     _mapper            = mapper;
 }
Exemplo n.º 4
0
 public StockBroker(IAuthenticationService authenticationService,
                    IStockPortfolioService portfolioService,
                    IStockPriceService priceService)
 {
     this.authenticationService = authenticationService;
     this.portfolioService = portfolioService;
     this.priceService = priceService;
 }
Exemplo n.º 5
0
        public BuyViewModel(IStockPriceService stockPriceService, IBuyStockService buyStockService, IAccountStore accountStore)
        {
            SearchSymbolCommand = new SearchSymbolCommand(this, stockPriceService);
            BuyStockCommand     = new BuyStockCommand(this, buyStockService, accountStore);

            ErrorMessageViewModel  = new MessageViewModel();
            StatusMessageViewModel = new MessageViewModel();
        }
Exemplo n.º 6
0
 public SellViewModel(AssetStore assetStore, IStockPriceService stockPriceService, ISellStockService sellStockService, IAccountStore accountStore)
 {
     AssetListingViewModel  = new AssetListingViewModel(assetStore);
     SearchSymbolCommand    = new SearchSymbolCommand(this, stockPriceService);
     SellStockCommand       = new SellStockCommand(this, sellStockService, accountStore);
     ErrorMessageViewModel  = new MessageViewModel();
     StatusMessageViewModel = new MessageViewModel();
 }
Exemplo n.º 7
0
 public StockBroker(IAuthenticationService authenticationService,
                    IStockPortfolioService portfolioService,
                    IStockPriceService priceService)
 {
     this.authenticationService = authenticationService;
     this.portfolioService      = portfolioService;
     this.priceService          = priceService;
 }
Exemplo n.º 8
0
 public StockViewerForm(IAuthenticationService authenticationService,
                        IStockPortfolioService portfolioService,
                        IStockPriceService priceService)
 {
     this.authenticationService = authenticationService;
     this.portfolioService      = portfolioService;
     this.priceService          = priceService;
     InitializeComponent();
 }
Exemplo n.º 9
0
 public IndexModel(
     IOptions <AppSettings> settings,
     IStockPriceService stockPriceService,
     IForeignExchangeRates foreignExchangeRates)
 {
     Settings             = settings.Value;
     StockPriceService    = stockPriceService;
     ForeignExchangeRates = foreignExchangeRates;
 }
Exemplo n.º 10
0
 public StockViewerForm(IAuthenticationService authenticationService,
     IStockPortfolioService portfolioService,
     IStockPriceService priceService)
 {
     this.authenticationService = authenticationService;
     this.portfolioService = portfolioService;
     this.priceService = priceService;
     InitializeComponent();
 }
Exemplo n.º 11
0
 public DividendProvider(
     IMapper mapper,
     IStocksRepository stocksRepository,
     IDividendCalendarService dividendCalendarService,
     IStockPriceService stockPriceService)
 {
     _mapper                  = mapper;
     _stocksRepository        = stocksRepository;
     _dividendCalendarService = dividendCalendarService;
     _stockPriceService       = stockPriceService;
 }
Exemplo n.º 12
0
 public BuyStockService(IStockPriceService stockPriceService, IAccountService accountService)
 {
     _stockPriceService = stockPriceService;
     _accountService    = accountService;
 }
Exemplo n.º 13
0
 public cmdSearchSymbol(BuyVM BVM, IStockPriceService SPS)
 {
     _BVM = BVM;
     _SPS = SPS;
 }
Exemplo n.º 14
0
 public ForeignExchangeRates(IStockPriceService service)
 {
     Service = service;
 }
Exemplo n.º 15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PortfolioService"/> class.
 /// </summary>
 /// <param name="investmentRepository">Data access repository for investments.</param>
 /// <param name="stockPrices">Stock pricing service.</param>
 public PortfolioService(IRepository <Investment> investmentRepository, IStockPriceService stockPrices)
 {
     this.investmentRepository = investmentRepository;
     this.stockPrices          = stockPrices;
 }
Exemplo n.º 16
0
 public BuyVM(IStockPriceService _SPS, IStockPurchaseService _SBS)
 {
     cmdSearchSymbol = new cmdSearchSymbol(this, _SPS);
     cmdBuyStock     = new cmdBuyStock(this, _SBS);
 }
Exemplo n.º 17
0
 public BuyViewModel(IStockPriceService stockPriceService, IBuyStockService buyStockService)
 {
     SearchSymbolCommand = new SearchSymbolCommand(this, stockPriceService);
     BuyStockCommand     = new BuyStockCommand(this, buyStockService);
 }
Exemplo n.º 18
0
 public SellStockService(IStockPriceService stockPriceService, IDataService <Account> accountService)
 {
     this.stockPriceService = stockPriceService;
     this.accountService    = accountService;
 }
Exemplo n.º 19
0
 public StockPriceProcessor(IStockPriceService stockPriceService)
 {
     _stockPriceService = stockPriceService;
 }
Exemplo n.º 20
0
 public BuyStockService(IStockPriceService stockPriceService, IDataService <Account> dataService)
 {
     this.stockPriceService = stockPriceService;
     this.dataService       = dataService;
 }
 public StockPriceController(IStockPriceService _service)
 {
     stockService = _service;
 }
Exemplo n.º 22
0
 public StockViewerForm(IAuthenticationService aAuthenticationService, IStockPortfolioService aStockPortfolioService, IStockPriceService aStockPriceService)
 {
     authenticationService = aAuthenticationService;
     portfolioService      = aStockPortfolioService;
     priceService          = aStockPriceService;
 }
Exemplo n.º 23
0
 public StockPriceProvider(IStockPriceService stockPriceService, IStockListService stockListService)
 {
     _stockPriceService = stockPriceService;
     _stockListService  = stockListService;
 }
Exemplo n.º 24
0
 public SearchSymbolCommand(IStockPriceService stockPriceService, BuyViewModel buyViewModel)
 {
     _stockPriceService = stockPriceService;
     _buyViewModel      = buyViewModel;
 }
 public SearchSymbolCommand(BuyViewModel buyViewModel, IStockPriceService stockPriceService)
 {
     _buyViewModel      = buyViewModel;
     _stockPriceService = stockPriceService;
 }
Exemplo n.º 26
0
 public StockPriceController(IStockPriceService stockPriceService)
 {
     this.stockPriceService = stockPriceService;
 }
Exemplo n.º 27
0
 public SearchSymbolCommand(ISearchSymbolViewModel viewModel, IStockPriceService stockPriceService)
 {
     this.viewModel         = viewModel;
     this.stockPriceService = stockPriceService;
 }
 public BuyViewModelFactory(IStockPriceService stockPriceService, IBuyStockService buyStockService)
 {
     this.stockPriceService = stockPriceService;
     this.buyStockService   = buyStockService;
 }
Exemplo n.º 29
0
 public StockPurchaseService(IStockPriceService SPS, IDataService <Account> AccS)
 {
     _SPS  = SPS;
     _AccS = AccS;
 }
Exemplo n.º 30
0
 public StockController(IStockPriceService stockPriceService)
 {
     _stockPriceService = stockPriceService;
 }
 public BuyStockService(IStockPriceService stockPriceService, IDataService <Account> accountService)
 {
     _stockPriceService = stockPriceService;
     _accountService    = accountService;
 }
Exemplo n.º 32
0
 public PriceController(IStockPriceService stockPriceService, IStockPriceProvider stockPriceProvider)
 {
     _stockPriceService  = stockPriceService;
     _stockPriceProvider = stockPriceProvider;
 }