using System; using System.Collections.Generic; using Xunit; namespace Bootstrap.Admin.Api { public class OnlineTest : ControllerTest { public OnlineTest(BAWebHost factory) : base(factory, "api/OnlineUsers") { } [Fact] public async void Post_Ok() { var users = await Client.PostAsJsonAsync>(string.Empty); Assert.Single(users); } [Fact] public async void Get_Ok() { var urls = await Client.GetAsJsonAsync>>("UnitTest"); Assert.Empty(urls); } } }