Exemple #1
0
        public StockRecord Create(DateTime date, double startPrice, double EndPrice)
        {
            var instance = new StockRecord {
                Id = Guid.NewGuid()
            };

            instance.Update(date, startPrice, EndPrice);
            return(instance);
        }
Exemple #2
0
        public static StockRecord Create(DateTime date, Double startPrice, Double endPrice, String owner)
        {
            var instance = new StockRecord {
                Id = new Guid()
            };

            instance.Update(date, startPrice, endPrice, owner);

            return(instance);
        }