Example #1
0
        public async Task PrimaryKey_Read_Check()
        {
            var soh = new SalesOrderHeaders();
            var toValidate = await soh.SingleAsync(new { SalesOrderID = 45816 });

            Assert.IsTrue(soh.HasPrimaryKey(toValidate));

            var pkValue = soh.GetPrimaryKey(toValidate);
            Assert.AreEqual(45816, pkValue);
        }