Exemple #1
0
 public static byte Byte(this RandomService service, byte maxValue)
 {
     return((byte)service.Int(maxValue));
 }
Exemple #2
0
 public static byte Byte(this RandomService service)
 {
     return(service.Byte(byte.MaxValue));
 }
Exemple #3
0
        public static byte[] ByteArray(this RandomService service)
        {
            return(ByteArray(service, 64));

            return(ByteArray(service, 64));
        }
Exemple #4
0
 public static short Short(this RandomService service)
 {
     return(service.Short(short.MaxValue));
 }
Exemple #5
0
 public static short Short(this RandomService service, short maxValue)
 {
     return((short)service.Int(maxValue));
 }
Exemple #6
0
 public static string HttpsUrl(this RandomService service)
 {
     return(string.Format("https://url-{0}.com", service.String(8)));
 }
Exemple #7
0
 public static string Email(this RandomService service)
 {
     return(string.Format("{0}@{1}.com", service.String(8), service.String(3)));
 }
Exemple #8
0
 public static DateTime DateUtc(this RandomService service, int days)
 {
     return(DateTime.UtcNow.AddDays(service.Int(days)));
 }
Exemple #9
0
 public static DateTime DateUtc(this RandomService service)
 {
     return(service.DateUtc(365));
 }
Exemple #10
0
 public static DateTime TodayUtc(this RandomService service)
 {
     return(DateTime.UtcNow);
 }
Exemple #11
0
 public static uint UInt(this RandomService service, uint maxValue)
 {
     return((uint)service.Int((int)maxValue));
 }
Exemple #12
0
 public static uint UInt(this RandomService service)
 {
     return(service.UInt(uint.MaxValue));
 }