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 Test(Customer customer) { return Json(customer, JsonRequestBehavior.AllowGet); }