Exemplo n.º 1
0
        protected override string NextInternal()
        {
            var account = _wordGenerator.Next();
            var host    = _hostnameGenerator.Next();

            return($"{account}@{host}");
        }
Exemplo n.º 2
0
        public void Hostname_MultipleSubDomains_ReturnsHostname()
        {
            var generator = new HostnameGenerator(5, 5);

            var host = generator.Next().ToString();

            Assert.That(host.Split('.'), Has.Length.EqualTo(6));
        }
Exemplo n.º 3
0
        public void Hostname_SingleSubdomain_ReturnsHostname()
        {
            var generator = new HostnameGenerator(1, 1);

            var host = generator.Next().ToString();

            Assert.That(host.Split('.'), Has.Length.EqualTo(2));
        }