protected JsonResult GetListByParamTest(OnixSaveController createCtrl, OnixGetListController getListCtrl, FormSubmitParam param) { 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.GetWithParam(param); return(getResult); }
protected JsonResult GetListWithNotFoundTest(OnixGetListController getListCtrl) { JsonResult getResult = getListCtrl.Get(); return(getResult); }