diff --git a/InternalUtilities/UNTESTED/AudibleApiStorage.cs b/InternalUtilities/UNTESTED/AudibleApiStorage.cs index d9b9e76d..66a8620c 100644 --- a/InternalUtilities/UNTESTED/AudibleApiStorage.cs +++ b/InternalUtilities/UNTESTED/AudibleApiStorage.cs @@ -19,9 +19,19 @@ namespace InternalUtilities _ = new AccountsPersister(new Accounts(), AccountsSettingsFile); } + // convenience for for tests and demos. don't use in production Libation + public static Account TEST_GetFirstAccount() + => new AccountsPersister(AccountsSettingsFile).Accounts.GetAll().FirstOrDefault(); + // convenience for for tests and demos. don't use in production Libation + public static string TEST_GetFirstIdentityTokensJsonPath() + => TEST_GetFirstAccount().GetIdentityTokensJsonPath(); + // TEMP public static string GetIdentityTokensJsonPath() => null; + public static string GetIdentityTokensJsonPath(this Account account) + => GetIdentityTokensJsonPath(account.AccountId, account?.IdentityTokens?.Locale.Name); + public static string GetIdentityTokensJsonPath(string username, string locale) { var usernameSanitized = JsonConvert.ToString(username); diff --git a/LibationLauncher/LibationLauncher.csproj b/LibationLauncher/LibationLauncher.csproj index 2d25b158..26eb85b7 100644 --- a/LibationLauncher/LibationLauncher.csproj +++ b/LibationLauncher/LibationLauncher.csproj @@ -13,7 +13,7 @@ win-x64 - 3.1.12.123 + 3.1.12.127