using Xunit; using static Bootstrap.Admin.Controllers.Api.AnalyseController; namespace Bootstrap.Admin.Api { public class AnalyseTest : ControllerTest { public AnalyseTest(BAWebHost factory) : base(factory, "api/Analyse") { } [Fact] public async void Get_Ok() { var cates = await Client.GetAsJsonAsync("?logType=LoginUsers"); Assert.NotNull(cates); cates = await Client.GetAsJsonAsync("?logType=log"); Assert.NotNull(cates); cates = await Client.GetAsJsonAsync("?logType=trace"); Assert.NotNull(cates); } } }