mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 18:48:09 +08:00
Add unit test
This commit is contained in:
39
Src/Asp.Net/SqlServerTest/UnitTest/UExp.cs
Normal file
39
Src/Asp.Net/SqlServerTest/UnitTest/UExp.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user