Exemplo n.º 1
0
        public void BusinessNameGenerator()
        {
            IBusinessNameGenerator businessnamegenerator = new BusinessNameGenerator();
            string businessname = businessnamegenerator.Generate(random);

            Assert.IsNotNull(businessname);
        }
Exemplo n.º 2
0
        public void BusinessNameGeneratorWithStringOverride()
        {
            IBusinessNameGenerator businessnamegenerator = new BusinessNameGenerator();
            string businessname = businessnamegenerator.Generate(random, "Boogy Boo");

            Assert.IsNotNull(businessname);
            Assert.AreEqual("Boogy Boo", businessname);
        }
Exemplo n.º 3
0
        public void WebsiteAddressGenerator()
        {
            IWebsiteAddressGenerator urlgenerator     = new WebsiteAddressGenerator();
            IBusinessNameGenerator   biznamegenerator = new BusinessNameGenerator();
            string testaddress = urlgenerator.Generate(random, biznamegenerator);

            Assert.IsNotNull(testaddress);
            Assert.IsTrue(IsWebsiteAddressValid(testaddress));
        }
Exemplo n.º 4
0
        public void WebsiteAddressGeneratorWithString()
        {
            IWebsiteAddressGenerator urlgenerator     = new WebsiteAddressGenerator();
            IBusinessNameGenerator   biznamegenerator = new BusinessNameGenerator();
            string websitename = urlgenerator.Generate(random, biznamegenerator, "http://www.yahoo.com");

            Assert.IsNotNull(websitename);
            Assert.AreEqual("http://www.yahoo.com", websitename);
            Assert.IsTrue(IsWebsiteAddressValid(websitename));
        }
Exemplo n.º 5
0
        public void BusinessNameGeneratorWithAttributeMap()
        {
            IBusinessNameGenerator businessnamegenerator = new BusinessNameGenerator();
            AttributeMap           attmap = new AttributeMap {
                GeneratorDefaultValue = "Boogy Boo"
            };
            string businessname = businessnamegenerator.Generate(random, attmap);

            Assert.IsNotNull(businessname);
            Assert.AreEqual("Boogy Boo", businessname);
        }
Exemplo n.º 6
0
        public void WebsiteAddressGeneratorWithAttribue()
        {
            IWebsiteAddressGenerator urlgenerator     = new WebsiteAddressGenerator();
            IBusinessNameGenerator   biznamegenerator = new BusinessNameGenerator();
            AttributeMap             attmap           = new AttributeMap {
                GeneratorDefaultValue = "http://www.yahoo.com"
            };
            string websitename = urlgenerator.Generate(random, biznamegenerator, attmap);

            Assert.IsNotNull(websitename);
            Assert.AreEqual("http://www.yahoo.com", websitename);
            Assert.IsTrue(IsWebsiteAddressValid(websitename));
        }
Exemplo n.º 7
0
 public void WebsiteAddressGeneratorWithString()
 {
     IWebsiteAddressGenerator urlgenerator = new WebsiteAddressGenerator();
     IBusinessNameGenerator biznamegenerator = new BusinessNameGenerator();
     string websitename = urlgenerator.Generate(random, biznamegenerator, "http://www.yahoo.com");
     Assert.IsNotNull(websitename);
     Assert.AreEqual("http://www.yahoo.com",websitename);
     Assert.IsTrue(IsWebsiteAddressValid(websitename));
 }
Exemplo n.º 8
0
 public void WebsiteAddressGeneratorWithAttribue()
 {
     IWebsiteAddressGenerator urlgenerator = new WebsiteAddressGenerator();
     IBusinessNameGenerator biznamegenerator = new BusinessNameGenerator();
     AttributeMap attmap = new AttributeMap { GeneratorDefaultValue = "http://www.yahoo.com" };
     string websitename = urlgenerator.Generate(random, biznamegenerator, attmap);
     Assert.IsNotNull(websitename);
     Assert.AreEqual("http://www.yahoo.com", websitename);
     Assert.IsTrue(IsWebsiteAddressValid(websitename));
 }
Exemplo n.º 9
0
 public void WebsiteAddressGenerator()
 {
     IWebsiteAddressGenerator urlgenerator = new WebsiteAddressGenerator();
     IBusinessNameGenerator biznamegenerator = new BusinessNameGenerator();
     string testaddress = urlgenerator.Generate(random, biznamegenerator);
     Assert.IsNotNull(testaddress);
     Assert.IsTrue(IsWebsiteAddressValid(testaddress));
 }
Exemplo n.º 10
0
 public void BusinessNameGeneratorWithStringOverride()
 {
     IBusinessNameGenerator businessnamegenerator = new BusinessNameGenerator();
     string businessname = businessnamegenerator.Generate(random, "Boogy Boo");
     Assert.IsNotNull(businessname);
     Assert.AreEqual("Boogy Boo", businessname);
 }
Exemplo n.º 11
0
 public void BusinessNameGeneratorWithAttributeMap()
 {
     IBusinessNameGenerator businessnamegenerator = new BusinessNameGenerator();
     AttributeMap attmap = new AttributeMap { GeneratorDefaultValue = "Boogy Boo" };
     string businessname = businessnamegenerator.Generate(random, attmap);
     Assert.IsNotNull(businessname);
     Assert.AreEqual("Boogy Boo", businessname);
 }
Exemplo n.º 12
0
 public void BusinessNameGenerator()
 {
     IBusinessNameGenerator businessnamegenerator = new BusinessNameGenerator();
     string businessname = businessnamegenerator.Generate(random);
     Assert.IsNotNull(businessname);
 }