public void BoundRecordInfo_Construction_Succeeds()
 {
     var customer = new Customer {ID = 15};
     var boundRecord = new BoundRecordInfo(customer);
     Assert.AreEqual(boundRecord.entityClass, "MvcPlayground.Models.Customer");
     Assert.AreEqual(boundRecord.primaryKey, 15);
 }
 public JsonResult BoundRecordTest()
 {
     var customer = new StoreContext().CustomerSet.ToList().Last();
     var boundRecord = new BoundRecordInfo(customer);
     return Json(boundRecord, JsonRequestBehavior.AllowGet);
 }