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