diff --git a/Lombiq.OrchardCoreApiClient.Tester/Program.cs b/Lombiq.OrchardCoreApiClient.Tester/Program.cs index eaad95a..6d77f53 100644 --- a/Lombiq.OrchardCoreApiClient.Tester/Program.cs +++ b/Lombiq.OrchardCoreApiClient.Tester/Program.cs @@ -47,7 +47,6 @@ await apiClient.CreateAndSetupTenantAsync( Name = name, DatabaseProvider = "Sqlite", ConnectionString = string.Empty, - RecipeName = "Blog", UserName = "admin", Email = "admin@example.com", Password = "Password1!", diff --git a/Lombiq.OrchardCoreApiClient/ApiClient.cs b/Lombiq.OrchardCoreApiClient/ApiClient.cs index a91855b..c4094ef 100644 --- a/Lombiq.OrchardCoreApiClient/ApiClient.cs +++ b/Lombiq.OrchardCoreApiClient/ApiClient.cs @@ -95,7 +95,8 @@ public async Task CreateAndSetupTenantAsync( try { - await OrchardCoreApi.SetupAsync(setupApiViewModel).ConfigureAwait(false); + using var response = await OrchardCoreApi.SetupAsync(setupApiViewModel).ConfigureAwait(false); + await response.EnsureSuccessStatusCodeAsync(); } catch (ApiException ex) { diff --git a/Lombiq.OrchardCoreApiClient/Models/TenantSetupApiModel.cs b/Lombiq.OrchardCoreApiClient/Models/TenantSetupApiModel.cs index 8d823d0..b07b76b 100644 --- a/Lombiq.OrchardCoreApiClient/Models/TenantSetupApiModel.cs +++ b/Lombiq.OrchardCoreApiClient/Models/TenantSetupApiModel.cs @@ -14,6 +14,7 @@ public class TenantSetupApiModel public string DatabaseProvider { get; set; } public string ConnectionString { get; set; } public string TablePrefix { get; set; } + public string Schema { get; set; } [Required] public string UserName { get; set; }