Exemplo n.º 1
0
        public void Get()
        {
            // Arrange
            var id = service.Create(new Invoice
            {
                organizationId   = "",
                contactId        = "",
                entryDate        = DateTime.Now.ToString("yyyy-MM-dd"),
                paymentTermsDays = 0,
                state            = "approved",
                sentState        = "unsent",
                taxMode          = "incl",
                invoiceNo        = "",
                lines            = new List <InvoiceLine>
                {
                    new InvoiceLine
                    {
                        unitPrice   = 0,
                        productId   = "",
                        description = ""
                    }
                }
            });

            // Act
            var result = service.Get(id);

            // Assert
            Assert.IsNotNull(result);
        }
Exemplo n.º 2
0
 public Invoice Create(Invoice item)
 {
     return(Invoices.Create(item));
 }
Exemplo n.º 3
0
 public IEnumerable <Invoice> Create(IEnumerable <Invoice> items)
 {
     return(Invoices.Create(items));
 }