Beispiel #1
0
        public void Setup()
        {
            var app = new OnlyIfTestApp();

            var config = new ConDepEnvConfig {
                EnvironmentName = "bogusEnv"
            };
            var server = new ServerConfig {
                Name = "bogusHost"
            };

            config.Servers = new[] { server };

            _sequenceManager = new ExecutionSequenceManager(config.Servers, new DefaultLoadBalancer());

            var settings = new ConDepSettings {
                Config = config
            };

            var local = new LocalOperationsBuilder(_sequenceManager.NewLocalSequence("Test"));

            app.Configure(local, settings);

            _serverInfo = new ServerInfo {
                OperatingSystem = new OperatingSystemInfo {
                    Name = "Windows Server 2012"
                }
            };
        }
        public void Setup()
        {
            var app = new OnlyIfTestApp();

            var config = new ConDepEnvConfig { EnvironmentName = "bogusEnv" };
            var server = new ServerConfig { Name = "bogusHost" };
            config.Servers = new[] { server };

            _sequenceManager = new ExecutionSequenceManager(config.Servers, new DefaultLoadBalancer());

            var settings = new ConDepSettings { Config = config };

            var local = new LocalOperationsBuilder(_sequenceManager.NewLocalSequence("Test"));
            app.Configure(local, settings);

            _serverInfo = new ServerInfo {OperatingSystem = new OperatingSystemInfo {Name = "Windows Server 2012"}};
        }