public virtual Quote CreateRandomQuote(Identifiers allowedIdentifiers) { var count = allowedIdentifiers.Count; var rand = this.Rand.Next(0, count); var chosenIdentifier = allowedIdentifiers[rand]; var ticker = this.TickerFactory.CreateRandomTicker(); var quoteDate = this.DateUtils.GetRandomDate(); var quote = new Quote { Identifier = chosenIdentifier, Price = ticker.Price, QuoteDate = quoteDate, }; return quote; }
public virtual Quote CreateRandomQuote() { var ticker = this.TickerFactory.CreateRandomTicker(); var quoteDate = this.DateUtils.GetRandomDate(); var quote = new Quote { Identifier = ticker.Identifier, Price = ticker.Price, QuoteDate = quoteDate, }; return quote; }