public void testShouldGetInvoiceId() { try { basicInvoice = bitpay.createInvoice(new Invoice(50.0, "USD")); Assert.IsNotNull(basicInvoice.Id, "Invoice created with id=NULL"); } catch (Exception ex) { Assert.Fail(ex.Message); } }
public void testShouldGetInvoiceId() { try { Invoice invoice = bitpay.createInvoice(new Invoice(1.0, "USD"), BitPay.FACADE_MERCHANT); invoice = bitpay.getInvoice(invoice.Id, BitPay.FACADE_MERCHANT); Assert.IsNotNull(invoice.Id, "Invoice created with id=NULL"); } catch (Exception ex) { Assert.Fail(ex.Message); } }