Esempio n. 1
0
        public void DeleteInvoiceItem_Test()
        {
            var invoiceItem = _client.CreateInvoiceItem(_customer.Id, 100M, "usd");
            var response    = _client.DeleteInvoiceItem(invoiceItem.Id);

            Assert.IsNotNull(response);
            Assert.IsFalse(response.IsError);
            Assert.IsTrue(response.Deleted);
            Assert.AreEqual(invoiceItem.Id, response.Id);
        }
Esempio n. 2
0
        public void DeleteInvoiceItem_Test()
        {
            dynamic invoiceItem = _client.CreateInvoiceItem(_customer.Id, 100M, "usd");
            dynamic response    = _client.DeleteInvoiceItem(invoiceItem.Id);

            Assert.NotNull(response);
            Assert.False(response.IsError);
            Assert.True(response.Deleted);
            Assert.Equal(invoiceItem.Id, response.Id);
        }