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);
        }
示例#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);
        }
示例#3
0
 public HomeController()
 {
     customerPaymentService = new CustomerPaymentService();
 }
示例#4
0
        public void PutDelegateIsNotSupported()
        {
            var service = new CustomerPaymentService(null, null);

            Assert.Throws <NotSupportedException>(() => service.Update(null, null, null, (code, s) => {}, (uri, exception) => {}));
        }
示例#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));
        }