public void ErrorIfAuthenticationFails()
 {
     _dataClientConfiguration = GetDefaultDataClientConfiguration().With((clientConfig) => clientConfig.Password = "******");
     _client = new JustGivingDataClient(_dataClientConfiguration);
     var paymentClient = new PaymentsApi(_client.HttpChannel);
     var response = paymentClient.NoOp();
     
     Assert.That(response, Is.EqualTo(HttpStatusCode.Unauthorized));
 }
        public void ErrorIfAuthenticationFails()
        {
            _dataClientConfiguration = GetDefaultDataClientConfiguration().With((clientConfig) => clientConfig.Password = "******");
            _client = new JustGivingDataClient(_dataClientConfiguration);
            var paymentClient = new PaymentsApi(_client.HttpChannel);
            var response      = paymentClient.NoOp();

            Assert.That(response, Is.EqualTo(HttpStatusCode.Unauthorized));
        }
        public void CanDoNoOp()
        {
            _dataClientConfiguration = GetDefaultDataClientConfiguration();
            _client = new JustGivingDataClient(_dataClientConfiguration);
            var paymentClient = new PaymentsApi(_client.HttpChannel);

            var response = paymentClient.NoOp();
            Assert.That(response, Is.EqualTo(HttpStatusCode.OK));
        }
        public void CanDoNoOp()
        {
            _dataClientConfiguration = GetDefaultDataClientConfiguration();
            _client = new JustGivingDataClient(_dataClientConfiguration);
            var paymentClient = new PaymentsApi(_client.HttpChannel);

            var response = paymentClient.NoOp();

            Assert.That(response, Is.EqualTo(HttpStatusCode.OK));
        }