public async Task TestBuildPaymentRequestWorksForIncompatiblePaymentMethods() { var ex = await Assert.ThrowsExceptionAsync <IncompatiblePaymentMethodsException>(() => Payments.BuildPaymentRequestAsync(wallet, DID_TRUSTEE, incompatibleInputs, emptyObject, null) ); }
public async Task TestBuildPaymentRequestWorksForInvalidInputs() { var ex = await Assert.ThrowsExceptionAsync <InvalidStructureException>(() => Payments.BuildPaymentRequestAsync(wallet, DID_TRUSTEE, invalidInputs, outputs, null) ); }
public async Task TestBuildPaymentRequestWorksForUnknownPaymentMethod() { var ex = await Assert.ThrowsExceptionAsync <UnknownPaymentMethodException>(() => Payments.BuildPaymentRequestAsync(wallet, DID_TRUSTEE, inputs, outputs, null) ); }