BootstrapAdmin/UnitTest/Bootstrap.Admin/Api/TasksTest.cs

19 lines
424 B
C#

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