单元测试:增加NotificationsController单元测试
This commit is contained in:
parent
eec18bcaf0
commit
ada2ebdd38
|
@ -0,0 +1,19 @@
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace Bootstrap.Admin.Api
|
||||||
|
{
|
||||||
|
public class NotificationsTest : ApiTest
|
||||||
|
{
|
||||||
|
public NotificationsTest(BAWebHost factory) : base(factory, "Notifications", true)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async void Get_Ok()
|
||||||
|
{
|
||||||
|
var resp = await Client.GetAsJsonAsync<object>();
|
||||||
|
Assert.NotNull(resp);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue