Add unit test

This commit is contained in:
sunkaixuan
2022-09-19 19:42:42 +08:00
parent 368290f119
commit c4dffaf9ac
4 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OrmTest
{
public class UExp
{
public static void Init()
{
new UExp().Test();
}
private readonly ITestExo order;
public UExp()
{
order = new TestExo();
}
public void Test()
{
var list = NewUnitTest.Db.Queryable<Order>().Where(it => it.Id == order.GetCurrentOrder.Id).ToList();
}
}
public class TestExo : ITestExo
{
public Order GetCurrentOrder
{
get
{
return new Order();
}
}
}
}