Пример #1
0
        public static StockHandle CreateStockHandle( string companyName, string isin, string currency )
        {
            var company = new Company( companyName );
            var stock = new Stock( company, isin );
            var exchange = new StockExchange( "Xetra", "DE", new Currency( currency, currency ) );
            var tradedStock = new TradedStock( stock, exchange );

            return new StockHandle( tradedStock );
        }
Пример #2
0
        protected void AddDummyStock(string isin)
        {
            var company = new Company( "C" );
            var stock = new Stock( company, isin );
            var exchange = new StockExchange( "Xetra", "De", new Currency( "Euro", "Euro" ) );
            var tradedStock = new TradedStock( stock, exchange );

            Interpreter.Context.Scope.Stock = new StockHandle( tradedStock );
        }
Пример #3
0
 public TradedStock(Stock stock, StockExchange se)
 {
     Stock         = stock;
     StockExchange = se;
 }
Пример #4
0
 public TradedStock( Stock stock, StockExchange se )
 {
     Stock = stock;
     StockExchange = se;
 }
Пример #5
0
 /// <summary>
 /// Deprecated Method for adding a new object to the StockExchanges EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToStockExchanges(StockExchange stockExchange)
 {
     base.AddObject("StockExchanges", stockExchange);
 }
Пример #6
0
 /// <summary>
 /// Create a new StockExchange object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="symbol">Initial value of the Symbol property.</param>
 public static StockExchange CreateStockExchange(global::System.Int64 id, global::System.String name, global::System.String symbol)
 {
     StockExchange stockExchange = new StockExchange();
     stockExchange.Id = id;
     stockExchange.Name = name;
     stockExchange.Symbol = symbol;
     return stockExchange;
 }