public void TestWithDeprecatedExtraQueryStringParameters2() { NameValueCollection queries = new NameValueCollection(); queries.Add("transactionType", TransactionType.Sale); queries.Add("InvoiceDueDateFrom", "01-11-05"); queries.Add("InvoiceDueDateTo", "10-11-05"); queries.Add("fields", "InvoiceUid,InvoiceDate,FirstCreated,ModifiedDate,DueDate,InvoiceNumber,TotalAmountInclTax,AmountOwed"); queries.Add("sortoptions", "InvoiceDate ASC"); InvoiceProxy proxy = new InvoiceProxy(); XmlDocument list = proxy.Find(queries); }
public void TestWithDateTypeExtraQueryStringParameters2() { NameValueCollection queries = new NameValueCollection(); queries.Add("transactionType", TransactionType.Purchase); queries.Add("dateType", "DueDate"); queries.Add("DateFrom", "01-01-09"); queries.Add("DateTo", "31-12-09"); queries.Add("paidStatus", "unpaid"); queries.Add("fields", "InvoiceUid,InvoiceDate,FirstCreated,ModifiedDate,DueDate,InvoiceNumber,TotalAmountInclTax,AmountOwed"); queries.Add("sortoptions", "InvoiceDate ASC"); InvoiceProxy proxy = new InvoiceProxy(); XmlDocument list = proxy.Find(queries); }