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); } }