21 lines
638 B
C#
21 lines
638 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
}
|