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); }
public Invoice Create(Invoice item) { return(Invoices.Create(item)); }
public IEnumerable <Invoice> Create(IEnumerable <Invoice> items) { return(Invoices.Create(items)); }