コード例 #1
0
 public async Task TestBuildPaymentRequestWorksForIncompatiblePaymentMethods()
 {
     var ex = await Assert.ThrowsExceptionAsync <IncompatiblePaymentMethodsException>(() =>
                                                                                      Payments.BuildPaymentRequestAsync(wallet, DID_TRUSTEE, incompatibleInputs, emptyObject, null)
                                                                                      );
 }
コード例 #2
0
 public async Task TestBuildPaymentRequestWorksForInvalidInputs()
 {
     var ex = await Assert.ThrowsExceptionAsync <InvalidStructureException>(() =>
                                                                            Payments.BuildPaymentRequestAsync(wallet, DID_TRUSTEE, invalidInputs, outputs, null)
                                                                            );
 }
コード例 #3
0
 public async Task TestBuildPaymentRequestWorksForUnknownPaymentMethod()
 {
     var ex = await Assert.ThrowsExceptionAsync <UnknownPaymentMethodException>(() =>
                                                                                Payments.BuildPaymentRequestAsync(wallet, DID_TRUSTEE, inputs, outputs, null)
                                                                                );
 }