private void ValidateEdgeGatewayPool(EdgeGatewayPool pool) { FabricCommon.ValidateResource(pool); Assert.NotNull(pool.Id); Assert.NotNull(pool.Location); Assert.NotNull(pool.Name); Assert.NotNull(pool.Type); Assert.NotNull(pool.GatewayType); Assert.NotNull(pool.PublicIpAddress); }
private void AssertEdgeGatewayPoolAreSame(EdgeGatewayPool expected, EdgeGatewayPool found) { if (expected == null) { Assert.Null(found); } else { Assert.True(FabricCommon.ResourceAreSame(expected, found)); Assert.Equal(expected.Name, found.Name); Assert.Equal(expected.Id, found.Id); Assert.Equal(expected.Location, found.Location); Assert.Equal(expected.GatewayType, found.GatewayType); Assert.Equal(expected.PublicIpAddress, found.PublicIpAddress); Assert.Equal(expected.NumberOfGateways, found.NumberOfGateways); } }