Exemplo n.º 1
0
        public void EmailAddressGenerator()
        {
            IGenerator <string> emailaddressgenerator = new EmailAddressGenerator();
            var emailaddy = (string)emailaddressgenerator.Generate();

            Assert.IsNotNull(emailaddy);
            Assert.IsTrue(IsEmailAddressValid(emailaddy));
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            LoremIpsumGenerator lig = new LoremIpsumGenerator();

            lig.Generate();

            EmailAddressGenerator eag = new EmailAddressGenerator();

            eag.Generate();
        }
Exemplo n.º 3
0
        public void EmailAddressGenerator()
        {
            IEmailAddressGenerator emailaddressgenerator = new EmailAddressGenerator();
            IFirstNameGenerator    fname = new FirstNameGenerator();
            ILastNameGenerator     lname = new LastNameGenerator();
            string emailaddress          = emailaddressgenerator.Generate(random, fname, lname);

            Assert.IsNotNull(emailaddress);
            Assert.IsTrue(IsEmailAddressValid(emailaddress));
        }
Exemplo n.º 4
0
        public void EmailAddressGeneratorStringOverride()
        {
            IEmailAddressGenerator emailaddressgenerator = new EmailAddressGenerator();
            IFirstNameGenerator    fname = new FirstNameGenerator();
            ILastNameGenerator     lname = new LastNameGenerator();
            string emailaddress          = emailaddressgenerator.Generate(random, fname, lname, "*****@*****.**");

            Assert.IsNotNull(emailaddress);
            Assert.AreEqual("*****@*****.**", emailaddress);
        }
Exemplo n.º 5
0
        public static User Generate()
        {
            var user = new User
            {
                EmailAddress = EmailAddressGenerator.Generate(),
                Password     = PasswordGenerator.Generate()
            };

            LastGeneratedUser = user;
            return(user);
        }
        public static User Generate()
        {
            var user = new User
            {
                //FullName = NameGenerator.Generate(),
                //MobileNumber = PhoneGenerator.Generate(),
                EmailAddress = EmailAddressGenerator.Generate(),
                Password     = PasswordGenerator.Generate()
            };

            LastGeneratedUser = user;
            return(user);
        }
Exemplo n.º 7
0
        public void EmailAddressGeneratorAttributeMap()
        {
            IEmailAddressGenerator emailaddressgenerator = new EmailAddressGenerator();
            IFirstNameGenerator    fname  = new FirstNameGenerator();
            ILastNameGenerator     lname  = new LastNameGenerator();
            AttributeMap           attmap = new AttributeMap {
                GeneratorDefaultValue = "*****@*****.**"
            };
            string emailaddress = emailaddressgenerator.Generate(random, fname, lname, attmap);

            Assert.IsNotNull(emailaddress);
            Assert.IsTrue(IsEmailAddressValid(emailaddress));
        }
Exemplo n.º 8
0
 public void EmailAddressGeneratorStringOverride()
 {
     IEmailAddressGenerator emailaddressgenerator = new EmailAddressGenerator();
     IFirstNameGenerator fname = new FirstNameGenerator();
     ILastNameGenerator lname = new LastNameGenerator();
     string emailaddress = emailaddressgenerator.Generate(random, fname, lname, "*****@*****.**");
     Assert.IsNotNull(emailaddress);
     Assert.AreEqual("*****@*****.**", emailaddress);
 }
Exemplo n.º 9
0
 public void EmailAddressGeneratorAttributeMap()
 {
     IEmailAddressGenerator emailaddressgenerator = new EmailAddressGenerator();
     IFirstNameGenerator fname = new FirstNameGenerator();
     ILastNameGenerator lname = new LastNameGenerator();
     AttributeMap attmap = new AttributeMap { GeneratorDefaultValue = "*****@*****.**" };
     string emailaddress = emailaddressgenerator.Generate(random, fname, lname, attmap);
     Assert.IsNotNull(emailaddress);
     Assert.IsTrue(IsEmailAddressValid(emailaddress));
 }
Exemplo n.º 10
0
 public void EmailAddressGenerator()
 {
     IEmailAddressGenerator emailaddressgenerator = new EmailAddressGenerator();
     IFirstNameGenerator fname=new FirstNameGenerator();
     ILastNameGenerator lname=new LastNameGenerator();
     string emailaddress=emailaddressgenerator.Generate(random,fname,lname);
     Assert.IsNotNull(emailaddress);
       Assert.IsTrue(IsEmailAddressValid(emailaddress));
 }
Exemplo n.º 11
0
 public void EmailAddressGenerator()
 {
     IGenerator<string> emailaddressgenerator = new EmailAddressGenerator();
     var emailaddy = (string) emailaddressgenerator.Generate();
     Assert.IsNotNull(emailaddy);
     Assert.IsTrue(IsEmailAddressValid(emailaddy));
 }