pull/3193/head
Halil İbrahim Kalkan 5 years ago
parent ced8c35b11
commit b6f114353d

@ -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();
}
}
}

Loading…
Cancel
Save