コード例 #1
0
        public static TestCaseEnvironmentGeneric Create(int seed, int maxLengthOfNsLookup, int staticRunTimeInMilliseconds, int numberOfIps, int method)
        {
            var ips             = new TextRandomizer(seed).CreateRandomStrings(length: 14, numberOfIps);
            var names           = new TextRandomizer(seed).CreateRandomStrings(length: 32, numberOfIps);
            var nsLookup        = new FakeNsLookup(seed, names, ips, maxLengthOfNsLookup);
            var nameResolver    = GetNameResolverByMethodNumber(method, nsLookup);
            var systemSimulator = new SystemSimulator(seed, ips, nameResolver, staticRunTimeInMilliseconds);

            return(new TestCaseEnvironmentGeneric(systemSimulator, nameResolver.GetType().Name));
        }
コード例 #2
0
 public void Initialize()
 {
     _randomizer = new TextRandomizer(new Randomizer());
 }