using System.Collections.Generic; using Xunit; namespace Bootstrap.Admin.Api.SqlServer { public class CategoryTest : ControllerTest { public CategoryTest(BAWebHost factory) : base(factory, "api/Category") { } [Fact] public async void DictCategorys_Ok() { var cates = await Client.GetAsJsonAsync>("RetrieveDictCategorys"); Assert.NotEmpty(cates); } [Fact] public async void Menus_Ok() { var cates = await Client.GetAsJsonAsync>("RetrieveMenus"); Assert.NotEmpty(cates); } [Fact] public async void ParentMenus_Ok() { var cates = await Client.GetAsJsonAsync>("RetrieveParentMenus"); Assert.NotEmpty(cates); } } }