protected JsonResult GetListWithFoundTest(OnixSaveController createCtrl, OnixGetListController getListCtrl) { FormSubmitParam prm = new FormSubmitParam(); BaseModel createdObj = (BaseModel)Activator.CreateInstance(createCtrl.ModelType); TestUtils.PopulateDummyPropValues(createdObj, createCtrl.PkFieldName); prm.JsonContent = JsonConvert.SerializeObject(createdObj, Formatting.Indented); createCtrl.CreateWithParam(prm); JsonResult getResult = getListCtrl.Get(); return(getResult); }
protected JsonResult GetListWithNotFoundTest(OnixGetListController getListCtrl) { JsonResult getResult = getListCtrl.Get(); return(getResult); }