Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 public JsonResult BoundRecordTest()
 {
     var customer = new StoreContext().CustomerSet.ToList().Last();
     var boundRecord = new BoundRecordInfo(customer);
     return Json(boundRecord, JsonRequestBehavior.AllowGet);
 }