public void PutAsyncIsNotSupported()
        {
            var service = new CustomerPaymentService(null, null);

            var ex = Assert.Throws<AggregateException>(() => service.UpdateAsync(null, null, null).Wait());
            Assert.IsInstanceOf<NotSupportedException>(ex.InnerException);
        }
Example #2
0
        public void PutAsyncIsNotSupported()
        {
            var service = new CustomerPaymentService(null, null);

            var ex = Assert.Throws <AggregateException>(() => service.UpdateAsync(null, null, null).Wait());

            Assert.IsInstanceOf <NotSupportedException>(ex.InnerException);
        }
Example #3
0
 public HomeController()
 {
     customerPaymentService = new CustomerPaymentService();
 }
Example #4
0
        public void PutDelegateIsNotSupported()
        {
            var service = new CustomerPaymentService(null, null);

            Assert.Throws <NotSupportedException>(() => service.Update(null, null, null, (code, s) => {}, (uri, exception) => {}));
        }
Example #5
0
        public void PutSyncIsNotSupported()
        {
            var service = new CustomerPaymentService(null, null);

            Assert.Throws <NotSupportedException>(() => service.Update(null, null, null));
        }
        public void PutDelegateIsNotSupported()
        {
            var service = new CustomerPaymentService(null, null);

            Assert.Throws<NotSupportedException>(() => service.Update(null, null, null, (code, s) => {}, (uri, exception) => {}));
        }
        public void PutSyncIsNotSupported()
        {
            var service = new CustomerPaymentService(null, null);

            Assert.Throws<NotSupportedException>(() => service.Update(null, null, null));
        }