Example #1
0
        public Uri Build(IGeneratorParameters generatorParameters, IWebPagePath basePagePath)
        {
            var uriString = "";

            uriString += _baseBuilder.Build(basePagePath);
            uriString += _creativityPathBuilder.Build(generatorParameters.CreativityLevel);
            uriString += _seedPathBuilder.Build(generatorParameters.GenerationSeed);

            return(new Uri(uriString, UriKind.Absolute));
        }
Example #2
0
        public void Build_ValidSeed_ValidResult(uint seed, string expected)
        {
            var result = _builder.Build(seed);

            Assert.AreEqual(expected, result, $"{result} should be {expected}");
        }