单元测试:增加TasksController单元测试
This commit is contained in:
parent
9341e63dcc
commit
6faa64fb73
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue