public void Find_AllColumns() { dynamic soh = new SalesOrderHeader(); var singleInstance = soh.Find(SalesOrderID: 43666); Assert.AreEqual(43666, singleInstance.SalesOrderID); }
public void Find_OneColumn() { dynamic soh = new SalesOrderHeader(); var singleInstance = soh.Find(SalesOrderID: 43666, columns: "SalesOrderID"); Assert.AreEqual(43666, singleInstance.SalesOrderID); var siAsDict = (IDictionary <string, object>)singleInstance; Assert.AreEqual(1, siAsDict.Count); }
public void PrimaryKey_Read_Check() { dynamic soh = new SalesOrderHeader(); var toValidate = soh.Find(SalesOrderID: 45816); Assert.IsTrue(soh.HasPrimaryKey(toValidate)); var pkValue = soh.GetPrimaryKey(toValidate); Assert.AreEqual(45816, pkValue); }