从山证v2.3.0拷贝
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
namespace YLErp.Modules.IntradayModule
|
||||
{
|
||||
[TestClass]
|
||||
public class TestIntradayPositionApiService
|
||||
{
|
||||
[TestMethod]
|
||||
public void TestGetIntradayPositions()
|
||||
{
|
||||
//当前交易日期
|
||||
var valueDate = BLL.valuedateBLL.ValueDate;
|
||||
var startDate = valueDate;
|
||||
|
||||
|
||||
var context = new IntradaySettleInfoQueryContext(OptUserInfo.SystemUser);
|
||||
|
||||
var clientIdsOfInside = context.GetClientIdsOfInside();
|
||||
|
||||
var clientIdsOfNoInside = context.GetClientIds().Where(a => !clientIdsOfInside.Contains(a)).ToList();
|
||||
|
||||
//持仓记录
|
||||
var positionResult = new IntradayPositionApiService(context).GetIntradayPositions(valueDate, clientIdsOfInside);
|
||||
|
||||
Assert.IsTrue(positionResult.OptionPositions.Any());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user