public Device Build()
 {
     return(new Device(
                identifier: GetPropertyValue(nameof(Device.Identifier), RandomDataGenerator.AlphaString(12)),
                type: GetPropertyValue(nameof(Device.Type), RandomDataGenerator.AlphaString(8)),
                otaKey: GetPropertyValue(nameof(Device.OtaKey), RandomDataGenerator.AccessToken())));
 }
Exemple #2
0
        public static string Url(string subdomain = default)
        {
            var localSubdomain = subdomain ?? "www";

            return($"http://{localSubdomain}.{RandomDataGenerator.AlphaString(10)}.com");
        }