|
|
|
@ -8,12 +8,10 @@ namespace Volo.Abp.AspNetCore.MultiTenancy |
|
|
|
{ |
|
|
|
public class AspNetCoreMultiTenancy_Tests : AppTestBase |
|
|
|
{ |
|
|
|
private const string FakeUrl = "http://abp.io"; |
|
|
|
|
|
|
|
[Fact] |
|
|
|
public async Task Should_Use_Host_If_Tenant_Is_Not_Specified() |
|
|
|
{ |
|
|
|
var result = await GetResponseAsObjectAsync<Dictionary<string, string>>(FakeUrl); |
|
|
|
var result = await GetResponseAsObjectAsync<Dictionary<string, string>>("http://abp.io"); |
|
|
|
result["TenantName"].ShouldBe("<host>"); |
|
|
|
} |
|
|
|
|
|
|
|
|