|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Shouldly;
|
|
|
|
|
using Volo.Abp.Http.Modeling;
|
|
|
|
|
using Xunit;
|
|
|
|
@ -12,6 +13,15 @@ namespace Volo.Abp.AspNetCore.Mvc.ApiExploring
|
|
|
|
|
{
|
|
|
|
|
var model = await GetResponseAsObjectAsync<ApplicationApiDescriptionModel>("/api/abp/api-definition");
|
|
|
|
|
model.ShouldNotBeNull();
|
|
|
|
|
model.Types.IsNullOrEmpty().ShouldBeTrue();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Fact]
|
|
|
|
|
public async Task GetAsync_IncludeTypes()
|
|
|
|
|
{
|
|
|
|
|
var model = await GetResponseAsObjectAsync<ApplicationApiDescriptionModel>("/api/abp/api-definition?includeTypes=true");
|
|
|
|
|
model.ShouldNotBeNull();
|
|
|
|
|
model.Types.IsNullOrEmpty().ShouldBeFalse();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|