单元测试:增加TasksController单元测试

This commit is contained in:
Argo-Surface 2019-01-16 17:17:06 +08:00
parent 9341e63dcc
commit 6faa64fb73
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
using Bootstrap.DataAccess;
using System.Collections.Generic;
using Xunit;
namespace Bootstrap.Admin.Api
{
public class TasksTest : ApiTest
{
public TasksTest(BAWebHost factory) : base(factory, "Tasks", true)
{
}
[Fact]
public async void Get_Ok()
{
var resp = await Client.GetAsJsonAsync<IEnumerable<Task>>();
Assert.NotNull(resp);
}
}
}