BootstrapAdmin/UnitTest/Bootstrap.DataAccess/SQLServer/TasksTest.cs

17 lines
443 B
C#
Raw Normal View History

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());
}
}
}