public void Can_Authenticate_with_JWT_then_call_AuthOnly_Services_with_ServiceClients()
        {
            var client = CreateClient();
            IEncryptedClient encryptedClient = client.GetEncryptedClient(client.Get <string>("/publickey"));

            encryptedClient.BearerToken = JwtBearerToken;

            var response = encryptedClient.Get(new HelloAuthenticated());
        }
        public void Can_call_GET_only_Services()
        {
            var client = CreateClient();
            IEncryptedClient encryptedClient = client.GetEncryptedClient(client.Get <string>("/publickey"));

            var response = encryptedClient.Get(new GetSecure {
                Name = "World"
            });

            Assert.That(response.Result, Is.EqualTo("Hello, World!"));
        }