public SimulatorOfTrading(IUsersService usersService, IUserTableRepository userRepo, IPortfolioServices portfolio, ITransactionServices transaction) { this.usersService = usersService; this.userRepo = userRepo; this.portfolioService = portfolio; this.transaction = transaction; }
public DealController(IUsersService usersService, IUserTableRepository userRepo, IPortfolioServices portfolio, ITransactionServices transaction, IShareServices shareServices) { this.usersService = usersService; this.userRepo = userRepo; this.portfolioService = portfolio; this.transaction = transaction; this.shareServices = shareServices; }
public NoteController(INoteServices noteServices, IPortfolioServices portfolioServices, HtmlEncoder htmlEncoder, JavaScriptEncoder javascriptEncoder) { _noteServices = noteServices; _portfolioServices = portfolioServices; _htmlEncoder = htmlEncoder; _javaScriptEncoder = javascriptEncoder; }
public ManagePortfolioController(IStockServices stockServices, IStockDescriptionServices stockDescriptionServices, IPortfolioServices portfolioServices, IOperationServices operationServices) { this.stockServices = stockServices; this.stockDescriptionServices = stockDescriptionServices; this.portfolioServices = portfolioServices; this.operationServices = operationServices; }
public MainPage(Container container, IIOProvider iOProvider, IPhraseProvider phraseProvider) { this.iOProvider = iOProvider; this.phraseProvider = phraseProvider; this.shareServices = container.GetInstance <ShareProxy>(); this.usersService = container.GetInstance <UsersProxy>(); this.transactionServices = container.GetInstance <TransactionProxy>(); this.portfolioServices = container.GetInstance <PortfolioProxy>(); this.simulator = container.GetInstance <SimulatorOfTrading>(); }
private StockTicker(IHubConnectionContext<dynamic> clients) { Clients = clients; var unitWork = new UnitOfWork(); stockServices = new StockServices(unitWork); stockDescriptionServices = new StockDescriptionServices(unitWork); portfolioServices = new PortfolioServices(unitWork); db = new ApplicationDbContext(); timer = new Timer(UpdateStockPrices, null, updateInterval, updateInterval); //random = new Random(0); }
public PortfolioCommentController(ICommentServices commentServices, IUserServices userServices, IPortfolioServices portfolioServices, HtmlEncoder htmlEncoder, JavaScriptEncoder javascriptEncoder, UrlEncoder urlEncoder) { _commentServices = commentServices; _userServices = userServices; _portfolioServices = portfolioServices; _htmlEncoder = htmlEncoder; _javaScriptEncoder = javascriptEncoder; _urlEncoder = urlEncoder; }
public PortfolioController(IPortfolioServices portfolioServices, IOrderServices orderServices, ICommentServices commentServices, IPurchasedPortfolioServices ppServices, HtmlEncoder htmlEncoder, JavaScriptEncoder javascriptEncoder) { _portfolioServices = portfolioServices; _orderServices = orderServices; _commentServices = commentServices; _htmlEncoder = htmlEncoder; _javaScriptEncoder = javascriptEncoder; _ppServices = ppServices; }
public OrderController(IOrderServices orderService, IPortfolioServices portfolioServices, ICommentServices commentServices, IPurchasedPortfolioServices ppservices, HtmlEncoder htmlEncoder, JavaScriptEncoder javascriptEncoder, UrlEncoder urlEncoder) { _orderServices = orderService; _portfolioServices = portfolioServices; _commentServices = commentServices; _ppServices = ppservices; _htmlEncoder = htmlEncoder; _javaScriptEncoder = javascriptEncoder; _urlEncoder = urlEncoder; }
public TransactionServices(ITransactionTableRepository repo, IUsersService usersService, IPortfolioServices portfolio) { this.repo = repo; this.usersService = usersService; this.portfolio = portfolio; }
public UserServices(IGenericRepository genericRepo, IUserRepository userRepo, IPortfolioServices portfolioService) { _genericRepo = genericRepo; _userRepo = userRepo; _portfolioService = portfolioService; }
/// <summary> /// Initializes a new instance of the <see cref="PortfolioServicesTest"/> class. /// </summary> public PortfolioServicesTest() { portfolioServices = new PortfolioServices(); }
/// <summary> /// Initializes a new instance of the <see cref="PortfolioController"/> class. /// </summary> /// <param name="portfolioServices">The portfolio service.</param> /// <param name="configuration">The configuration.</param> public PortfolioController(IPortfolioServices portfolioServices, IConfiguration configuration) { this.PortfolioServices = portfolioServices; this.Configuration = configuration; }