예제 #1
0
        private void ValidateSlbMuxInstance(SlbMuxInstance instance)
        {
            FabricCommon.ValidateResource(instance);

            Assert.NotNull(instance.BgpPeers);
            Assert.NotNull(instance.ConfigurationState);
            Assert.NotNull(instance.VirtualServer);
        }
예제 #2
0
        private void AssertSlbMuxInstancesAreSame(SlbMuxInstance expected, SlbMuxInstance found)
        {
            if (expected == null)
            {
                Assert.Null(found);
            }
            else
            {
                Assert.True(FabricCommon.ResourceAreSame(expected, found));

                if (expected.BgpPeers == null)
                {
                    Assert.Null(found.BgpPeers);
                }
                else
                {
                    Assert.Equal(expected.BgpPeers.Count, found.BgpPeers.Count);
                }
                Assert.Equal(expected.ConfigurationState, found.ConfigurationState);
                Assert.Equal(expected.VirtualServer, found.VirtualServer);
            }
        }