Exemplo n.º 1
0
 public static Forecast CreateNew(MeasurementPoint measurementPoint, Model model)
 {
     return(new Forecast
     {
         Id = Guid.NewGuid(),
         MeasurementPoint = measurementPoint,
         Model = model
     });
 }
Exemplo n.º 2
0
        public static MeasurementPoint CreateNew()
        {
            var measurementPoint =
                new MeasurementPoint
            {
                Id          = Guid.NewGuid(),
                IsActive    = true,
                CreatedDate = DateTimeOffset.Now
            };

            return(measurementPoint);
        }