This commit is contained in:
2018-11-12 18:40:21 +00:00
parent e101a6eb80
commit 719b8c4eeb
2 changed files with 5 additions and 4 deletions

View File

@@ -409,7 +409,7 @@ namespace AyaNova
AyaNova.Core.License.Initialize(apiServerState, dbContext, _log);
//Ensure locales are present, not missing any keys and that there is a server default locale that exists
LocaleBiz lb = new LocaleBiz(dbContext, 1, AuthorizationRoles.OpsAdminFull);
LocaleBiz lb = new LocaleBiz(dbContext, 1, ServerBootConfig.AYANOVA_DEFAULT_LANGUAGE_ID, AuthorizationRoles.OpsAdminFull);
lb.ValidateLocales();

View File

@@ -58,8 +58,9 @@ namespace raven_integration
List<string> keys = new List<string>();
keys.AddRange(new string[] { "AddressType", "ClientName", "RateName", "WorkorderService" });
dynamic d = new JObject();
d.localeId = 1;
d.keys = JToken.FromObject(keys);
//d.localeId = 1;
//d.keys = JToken.FromObject(keys);
d = JToken.FromObject(keys);
ApiResponse a = await Util.PostAsync("Locale/subset", await Util.GetTokenAsync("ClientLimited"), d.ToString());
Util.ValidateDataReturnResponseOk(a);
@@ -142,7 +143,7 @@ namespace raven_integration
checkPUTWorked = await Util.PostAsync("Locale/subset", await Util.GetTokenAsync("ClientLimited"), d3.ToString());
Util.ValidateDataReturnResponseOk(checkPUTWorked);
Util.ValidateHTTPStatusCode(checkPUTWorked, 200);
Util.ValidateHTTPStatusCode(checkPUTWorked, 200);
((JArray)checkPUTWorked.ObjectResponse["data"]).Count.Should().Be(1);
var FirstLocaleKeyUpdated = ((JArray)checkPUTWorked.ObjectResponse["data"])[0];