Example #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);
 }
Example #2
0
 public JsonResult Test(Customer customer)
 {
     return Json(customer, JsonRequestBehavior.AllowGet);
 }