Ejemplo n.º 1
0
        public override object GetValue(object instance)
        {
            int totalDays  = (Max - Min).Days;
            int randomDays = _random.Next(totalDays);
            int seconds    = _random.Next(24 * 60 * 60);

            return(Min.AddDays(randomDays).AddSeconds(seconds));
        }
Ejemplo n.º 2
0
        public DateTime GetRandomDate()
        {
            int totalDays  = (Max - Min).Days;
            int randomDays = _random.Next(totalDays);
            int seconds    = _random.Next(24 * 60 * 60);

            return(Min.AddDays(randomDays).AddSeconds(seconds));
        }