25 lines
748 B
C#
25 lines
748 B
C#
namespace YLErp.Modules.ClientModule
|
|
{
|
|
[TestClass]
|
|
public class ClientPositionServiceTest : UnitTestBase
|
|
{
|
|
[TestMethod]
|
|
public void TestGetAllPositions()
|
|
{
|
|
var list = new ClientPositionService(GetOptUser()).GetAllPositionsV1(new ClientPositionQueryModel
|
|
{
|
|
PageSize = 1000,
|
|
ClientId = 1,
|
|
ValueDate = new DateTime(2023, 1, 2)
|
|
});
|
|
|
|
Assert.IsTrue(list.Any(n => n.BinaryOption.PayoffType == "CashOrNothing"));
|
|
|
|
foreach (var item in list)
|
|
{
|
|
System.Diagnostics.Debug.WriteLine("{0}::{1}::{2}", item.TradeNumber, item.CurrentPrice,item.InitMargin);
|
|
}
|
|
}
|
|
}
|
|
}
|