从山证v2.3.0拷贝
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using System.Linq;
|
||||
|
||||
namespace YLErp.Modules.ClientModule
|
||||
{
|
||||
[TestClass]
|
||||
public class ClientPositionServiceTest : UnitTestBase
|
||||
{
|
||||
[TestMethod("测试tapconsole api:api/v2/clientPositionList")]
|
||||
public void TestGetAllPositionsV2()
|
||||
{
|
||||
var datas = new ClientPositionService(CurUser).GetAllPositionsV2(new ClientPositionQueryModel { PageSize = 1000 });
|
||||
var t = datas.FirstOrDefault(n => n.TradeId == 104120);
|
||||
if (t != null)
|
||||
{
|
||||
Assert.AreEqual(t.HedgeVol, 0.4);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user