public void SetUp() { authService = MockRepository.GenerateStub <IAuthenticationService>(); portfolioService = MockRepository.GenerateStub <IStockPortfolioService>(); priceService = MockRepository.GenerateStub <IStockPriceService>(); broker = new StockBroker(authService, portfolioService, priceService); }
public StockBroker(IAuthenticationService authenticationService, IStockPortfolioService portfolioService, IStockPriceService priceService) { this.authenticationService = authenticationService; this.portfolioService = portfolioService; this.priceService = priceService; }
public StockViewerForm(IAuthenticationService authenticationService, IStockPortfolioService portfolioService, IStockPriceService priceService) { this.authenticationService = authenticationService; this.portfolioService = portfolioService; this.priceService = priceService; InitializeComponent(); }
public StockViewerForm(IAuthenticationService aAuthenticationService, IStockPortfolioService aStockPortfolioService, IStockPriceService aStockPriceService) { authenticationService = aAuthenticationService; portfolioService = aStockPortfolioService; priceService = aStockPriceService; }
public PersonalInvestmentController(ISubscriptionService subscriptionService, IStockPortfolioService stockService) { _subscriptionService = subscriptionService; _stockService = stockService; }