Exemplo n.º 1
0
        //[Test]
        public void ListFederatedVCs()
        {
            var endpoints = new List <VCEndpoint>(_lsClient.GetFederatedVCHostNames());

            Assert.NotNull(endpoints);
            Assert.AreEqual(2, endpoints.Count);

            var hostNames = new List <string>(endpoints.Select <VCEndpoint, string>(a => a.Hostname));

            Assert.Contains(VC_ADDRESS, hostNames);
            Assert.Contains(VC_ADDRESS, hostNames);

            Assert.NotNull(endpoints[0].SslTrustCertificates);
            Assert.NotNull(endpoints[1].SslTrustCertificates);

            Assert.GreaterOrEqual(1, endpoints[0].SslTrustCertificates.Length);
            Assert.GreaterOrEqual(1, endpoints[1].SslTrustCertificates.Length);
        }