public void Should_convert_sales_invoice_to_sales_invoice_response() { var salesinvoice = _salesInvoiceInterface.GetByNumber("1"); var salesInvoiceResponse = _salesInvoiceConverter.ConvertSalesInvoice(salesinvoice[0]); Assert.IsNotNull(salesInvoiceResponse); }
public void Should_find_salesinvoice_with_given_number() { var s = _salesInvoiceInterface.GetByNumber("1"); List <SalesInvoice> salesInvoices = new List <SalesInvoice>(); foreach (var x in s) { var salesinvoice = _salesInvoiceInterface.Read(x.Header.Invoicenumber.ToString(), x.Header.Invoicetype); salesInvoices.Add(salesinvoice); } Assert.IsNotNull(salesInvoices); Assert.AreEqual(salesInvoices[0].Header.Invoicenumber.ToString(), "1"); }