public void TestGetClientString_WrongAddress()
 {
     TestHelper.LoadConfig(
         "HermesAuthentiationServiceClientInvalidAddress.xml");
     HermesAuthorizationServiceClient client =
         HermesAuthorizationServiceClient.GetClient();
 }
        public void TestGetClient_Accuracy()
        {
            HermesAuthorizationServiceClient client =
                HermesAuthorizationServiceClient.GetClient();

            ValidateFields(client);
        }
 public void TestGetClientString_WithoutBinding()
 {
     TestHelper.LoadConfig(
         "HermesAuthentiationServiceClientNoBinding.xml");
     HermesAuthorizationServiceClient client =
         HermesAuthorizationServiceClient.GetClient();
 }
        public void TestGetClient_Without_ObjectFactory()
        {
            TestHelper.LoadConfig(
                "HermesAuthentiationServiceClientNoObjectFactory.xml");
            HermesAuthorizationServiceClient client =
                HermesAuthorizationServiceClient.GetClient();

            ValidateFields(client);
        }
        public void TestGetClientString_Accuracy()
        {
            HermesAuthorizationServiceClient client =
                HermesAuthorizationServiceClient.GetClient(
                    "Hermes.Services.Security.Authorization.Client." +
                    "HermesAuthorizationServiceClient");

            ValidateFields(client);
        }
        public void SetUp()
        {
            TestHelper.LoadConfig();
            serviceHost = new TCWcfServiceHost(
                typeof(HermesAuthorizationService), DemoEndPointAddress);
            BasicHttpBinding        binding  = new BasicHttpBinding();
            ServiceMetadataBehavior behavior = new ServiceMetadataBehavior();

            behavior.HttpGetEnabled = true;
            serviceHost.Description.Behaviors.Add(behavior);
            serviceHost.AddServiceEndpoint(
                typeof(IAuthorization), binding, "");
            serviceHost.Open();
            service = HermesAuthorizationServiceClient.GetClient();
        }
 public void TestGetClientString_Empty_Namespace()
 {
     HermesAuthorizationServiceClient client =
         HermesAuthorizationServiceClient.GetClient("  ");
 }
 public void TestGetClientString_Null_Namespace()
 {
     HermesAuthorizationServiceClient client =
         HermesAuthorizationServiceClient.GetClient(null);
 }