BootstrapAdmin/UnitTest/Bootstrap.DataAccess/TasksTest.cs

17 lines
443 B
C#

using System;
using Xunit;
namespace Bootstrap.DataAccess.SqlServer
{
[Collection("SQLServerContext")]
public class TasksTest
{
[Fact]
public void Retrieves_Ok()
{
TaskHelper.Save(new Task() { TaskName = "UnitTest", AssignName = "User", UserName = "Admin", TaskTime = 0, TaskProgress = 20, AssignTime = DateTime.Now });
Assert.NotEmpty(TaskHelper.Retrieves());
}
}
}