public async Task ThenTheTenantWithIdHasAParentWithIdAsync(string tenantId, string expectedParentId) { ITenantProvider tenantProvider = ContainerBindings.GetServiceProvider(this.scenarioContext).GetRequiredService <ITenantProvider>(); ITenant tenant = await tenantProvider.GetTenantAsync(tenantId).ConfigureAwait(false); Assert.AreEqual(expectedParentId, tenant.GetParentId()); }