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 ); }
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 ); }
public TradedStock(Stock stock, StockExchange se) { Stock = stock; StockExchange = se; }
public TradedStock( Stock stock, StockExchange se ) { Stock = stock; StockExchange = se; }
/// <summary> /// Deprecated Method for adding a new object to the StockExchanges EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToStockExchanges(StockExchange stockExchange) { base.AddObject("StockExchanges", stockExchange); }
/// <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; }