Beispiel #1
0
 public async Task TestBuildGetPaymentSourcesRequestWorksForInvalidPaymentAddress()
 {
     var ex = await Assert.ThrowsExceptionAsync <IncompatiblePaymentMethodsException>(() =>
                                                                                      Payments.BuildGetPaymentSourcesAsync(wallet, DID_TRUSTEE, "pay:null1")
                                                                                      );
 }
Beispiel #2
0
 public async Task TestBuildGetPaymentSourcesRequestWorksForUnknownPaymentMethod()
 {
     var ex = await Assert.ThrowsExceptionAsync <UnknownPaymentMethodException>(() =>
                                                                                Payments.BuildGetPaymentSourcesAsync(wallet, DID_TRUSTEE, paymentAddress)
                                                                                );
 }