private static BrightstarClusertManagerServiceClient GetClusterClient()
        {
            const string endpointUri = "http://127.0.0.1:9090/brightstarcluster";
            var          binding     = new BasicHttpContextBinding
            {
                MaxReceivedMessageSize = Int32.MaxValue,
                SendTimeout            = TimeSpan.FromMinutes(30),
                TransferMode           = TransferMode.StreamedResponse,
                ReaderQuotas           = XmlDictionaryReaderQuotas.Max
            };
            var endpointAddress = new EndpointAddress(endpointUri);

            var client = new BrightstarClusertManagerServiceClient(binding, endpointAddress);

            return(client);
        }
        public void TestUnavailableWithNoNodes()
        {
            StartClusterManagerService();
            var endpointUri = "http://127.0.0.1:9090/brightstarcluster";
            var binding     = new BasicHttpContextBinding
            {
                MaxReceivedMessageSize = Int32.MaxValue,
                SendTimeout            = TimeSpan.FromMinutes(30),
                TransferMode           = TransferMode.StreamedResponse,
                ReaderQuotas           = XmlDictionaryReaderQuotas.Max
            };
            var endpointAddress = new EndpointAddress(endpointUri);

            var client             = new BrightstarClusertManagerServiceClient(binding, endpointAddress);
            var clusterDescription = client.GetClusterDescription();

            Assert.IsNotNull(clusterDescription);
            Assert.AreEqual(ClusterStatus.Unavailable, clusterDescription.Status);
        }