Closed goenning closed 10 years ago
using (SharpSapRfcConnection conn = new SharpSapRfcConnection("")) { IEnumerable<ZCustomer> customers = new ZCustomer[] { new ZCustomer() { Id = 1 } }; var result = conn.ExecuteFunction("Z_SSRT_QUERY_CUSTOMERS", new RfcParameter("c_customers", customers) ); Assert.AreEqual(1, customers.Count()); Assert.AreEqual(1, customers.ElementAt(0).Id); Assert.AreEqual("Apple Store", customers.ElementAt(0).Name); Assert.AreEqual(0, customers.ElementAt(0).Age); Assert.AreEqual(true, customers.ElementAt(0).IsActive); }