59 lines
1.8 KiB
59 lines
1.8 KiB
using CounsellorBL;
|
|
using CounsellorBL.GROUP.ConstDefinition;
|
|
using CounsellorBL.GROUP.Helper;
|
|
using OT.COM.ArsenalDB;
|
|
using OT.COM.ArsenalDB.SQL;
|
|
using OT.COM.SignalerMessage;
|
|
using Xunit;
|
|
|
|
namespace XUnitTestProject
|
|
{
|
|
public class UnitTest1 : DBService
|
|
{
|
|
public override string MainTable => throw new System.NotImplementedException();
|
|
|
|
[Fact]
|
|
public void Test1()
|
|
{
|
|
Assert.True(new TestService().LogTest() > 0);
|
|
}
|
|
|
|
[Fact]
|
|
public void Test2()
|
|
{
|
|
Assert.True(new TestService().TestSQLLib() != null);
|
|
}
|
|
|
|
[Fact]
|
|
public void SQLLibTest_GetArticleInRange()
|
|
{
|
|
CResponseMessage crm = simpleRead(null, new SQLLib(new MSSQLDirectSQLHelper()).GetArticleInRange(out Command cRes), cRes);
|
|
|
|
Assert.True(crm.result == EResponseResult.RR_TRUE);
|
|
}
|
|
|
|
[Fact]
|
|
public void SQLLibTest_GetScheduleWaitingArticleInRange()
|
|
{
|
|
CResponseMessage crm = simpleRead(null, new SQLLib(new MSSQLDirectSQLHelper()).GetScheduleWaitingArticleInRange(out Command cRes), cRes);
|
|
|
|
Assert.True(crm.result == EResponseResult.RR_TRUE);
|
|
}
|
|
|
|
[Fact]
|
|
public void SQLLibTest_GetMediadWaitingArticleInRange()
|
|
{
|
|
CResponseMessage crm = simpleRead(null, new SQLLib(new MSSQLDirectSQLHelper()).GetMediadWaitingArticleInRange(out Command cRes), cRes);
|
|
|
|
Assert.True(crm.result == EResponseResult.RR_TRUE);
|
|
}
|
|
|
|
[Fact]
|
|
public void SQLLibTest_GetFailWaitingArticleInRange()
|
|
{
|
|
CResponseMessage crm = simpleRead(null, new SQLLib(new MSSQLDirectSQLHelper()).GetFailWaitingArticleInRange(out Command cRes), cRes);
|
|
|
|
Assert.True(crm.result == EResponseResult.RR_TRUE);
|
|
}
|
|
}
|
|
}
|