public void ThenTheTenantCalledShouldContainTableStorageConfigurationForATableStorageTableDefinitionWithTableName( string tenantName, string tableName) { InMemoryTenantProvider tenantProvider = ContainerBindings.GetServiceProvider(this.scenarioContext).GetRequiredService <InMemoryTenantProvider>(); ITenant tenant = tenantProvider.GetTenantByName(tenantName) ?? throw new TenantNotFoundException($"Could not find tenant with name '{tenantName}'"); var tableDefinition = new TableStorageTableDefinition(tableName); TableStorageConfiguration tenantConfigItem = tenant.GetTableStorageConfiguration(tableDefinition); // GetTableStorageConfiguration would have thrown an exception if the config didn't exist, but we'll do a // not null assertion anyway... Assert.IsNotNull(tenantConfigItem); }