Esempio n. 1
0
        public void TestTypesDoesNotAddEmpty()
        {
            var infrastructure = new Infrastructure();

            infrastructure.AddItems(new List <Server>());
            Assert.Empty(infrastructure.Types);
        }
Esempio n. 2
0
        private static Infrastructure SetupExampleInfrastructure()
        {
            var infrastructure = new Infrastructure();

            infrastructure.AddItems(new List <Server>
            {
                new Server(
                    new OperatingSystem(app: "docker"),
                    new Plan(4, 1024, "SSD"),
                    "Chicago")
            });

            infrastructure.AddItems(new List <Firewall>
            {
                new Firewall("test", new FirewallRule(
                                 IpType.V4, Protocol.TCP, "80", "cloudflare"))
            });

            return(infrastructure);
        }