Esempio n. 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));
        }
Esempio n. 2
0
 public TestCaseEnvironmentGeneric(SystemSimulator systemSimulator, string cachingStrategyName)
 {
     _systemSimulator    = systemSimulator;
     CachingStrategyName = cachingStrategyName;
 }