public void TestTypesDoesNotAddEmpty() { var infrastructure = new Infrastructure(); infrastructure.AddItems(new List <Server>()); Assert.Empty(infrastructure.Types); }
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); }