private Result updateAppData(ExStoreApp xApp, string title) { ExStoreRtnCodes result; // todo fix update method XsMgr.XApp = xApp; result = XsMgr.UpdateApp(/*xApp*/); if (result != ExStoreRtnCodes.XRC_GOOD) { return(test01Fail(title, "update App", result)); } ExStorageTests.ShowDataApp(XsMgr.XApp); ExStorageTests.ShowDataCell(XsMgr.XCell); return(Result.Succeeded); }
private Result Test01() { ExStoreHelper xsHlpr = new ExStoreHelper(); // ExStoreRtnCodes result = ReadRootExStore(xsHlpr); ExStoreRtnCodes result = XsMgr.RootExStorExists ? ExStoreRtnCodes.XRC_GOOD : ExStoreRtnCodes.XRC_ROOT_NOT_EXIST; if (result != ExStoreRtnCodes.XRC_GOOD) { XsMgr.ReadSchemaFail(XsMgr.OpDescription); return(Result.Failed); } // ExStoreApp xApp = ExStoreApp.Instance(); try { // result = XsMgr.ReadApp(); result = XsMgr.AppExStorExists ? ExStoreRtnCodes.XRC_GOOD : ExStoreRtnCodes.XRC_APP_NOT_EXIST; // result = xsHlpr.ReadAppData(xApp); if (result != ExStoreRtnCodes.XRC_GOOD) { XsMgr.ReadSchemaFail(XsMgr.OpDescription); return(Result.Failed); } } catch (OperationCanceledException) { return(Result.Failed); } ExStorageTests.ShowDataApp(XsMgr.XApp); return(Result.Succeeded); }