public void CanGetEndpointNamesWithNullPredicate()
        {
            ServiceModelConfigurationManager manager = LoadManager();

            manager.AddEndpoint(Constants.ServiceName, ServiceModelConfigurationManager.GetSecureMetadataExchangeEndpoint());
            IList <string> endpointNames = manager.GetEndpointNames(Constants.ServiceName, null);

            Assert.AreEqual(3, endpointNames.Count);
        }
        public void CanGetEndpointNamesWithoutMexEndpoints()
        {
            ServiceEndpointElement           mexEndpoint       = ServiceModelConfigurationManager.GetMetadataExchangeEndpoint();
            ServiceEndpointElement           secureMexEndpoint = ServiceModelConfigurationManager.GetSecureMetadataExchangeEndpoint();
            ServiceModelConfigurationManager manager           = LoadManager();

            manager.AddEndpoint(Constants.ServiceName, mexEndpoint);
            manager.AddEndpoint(Constants.ServiceName, secureMexEndpoint);

            IList <string> endpointNames = manager.GetEndpointNames(Constants.ServiceName);

            Assert.IsFalse(endpointNames.Contains(manager.GetEndpointName(mexEndpoint)));
            Assert.IsFalse(endpointNames.Contains(manager.GetEndpointName(secureMexEndpoint)));
        }