Beispiel #1
0
        public async Task ThenThereIsAClientTenantCalled(string clientTenantName)
        {
            ITenantStore tenantStore = ContainerBindings.GetServiceProvider(this.scenarioContext).GetRequiredService <ITenantStore>();

            await foreach (string clientTenantId in tenantStore.EnumerateAllChildrenAsync(WellKnownTenantIds.ClientTenantParentId))
            {
                ITenant tenant = await tenantStore.GetTenantAsync(clientTenantId).ConfigureAwait(false);

                if (tenant.Name == clientTenantName)
                {
                    return;
                }
            }

            Assert.Fail($"There is no client tenant called '{clientTenantName}'");
        }