예제 #1
0
 public SimulatorOfTrading(IUsersService usersService, IUserTableRepository userRepo, IPortfolioServices portfolio, ITransactionServices transaction)
 {
     this.usersService     = usersService;
     this.userRepo         = userRepo;
     this.portfolioService = portfolio;
     this.transaction      = transaction;
 }
예제 #2
0
 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;
 }
예제 #3
0
 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;
 }
예제 #5
0
 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>();
 }
예제 #6
0
      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;
 }
예제 #8
0
 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;
 }
예제 #9
0
 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;
 }
예제 #10
0
 public TransactionServices(ITransactionTableRepository repo, IUsersService usersService, IPortfolioServices portfolio)
 {
     this.repo         = repo;
     this.usersService = usersService;
     this.portfolio    = portfolio;
 }
예제 #11
0
 public UserServices(IGenericRepository genericRepo, IUserRepository userRepo, IPortfolioServices portfolioService)
 {
     _genericRepo      = genericRepo;
     _userRepo         = userRepo;
     _portfolioService = portfolioService;
 }
예제 #12
0
 /// <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;
 }