BootstrapAdmin/test/UnitTest/Bootstrap.Admin/Controllers/SQLServer/HealthCheck.cs

24 lines
585 B
C#

using Xunit;
namespace Bootstrap.Admin.Controllers.SqlServer
{
public class HealthCheck : ControllerTest
{
public HealthCheck(BAWebHost factory) : base(factory, "") { }
[Fact]
public async void View_Ok()
{
var content = await Client.GetStringAsync("/Healths");
Assert.Contains("TotalDuration", content);
}
[Fact]
public async void UI_Ok()
{
var content = await Client.GetStringAsync("/Healths-ui");
Assert.Contains("健康检查", content);
}
}
}