Exemple #1
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));
        }
Exemple #2
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));
        }
Exemple #3
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));
        }
 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));
 }
 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));
 }
 public void WebsiteAddressGenerator()
 {
     IWebsiteAddressGenerator urlgenerator = new WebsiteAddressGenerator();
     IBusinessNameGenerator biznamegenerator = new BusinessNameGenerator();
     string testaddress = urlgenerator.Generate(random, biznamegenerator);
     Assert.IsNotNull(testaddress);
     Assert.IsTrue(IsWebsiteAddressValid(testaddress));
 }