25 lines
741 B
C#
25 lines
741 B
C#
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using System.Linq;
|
|
using YLErp.Modules.TradeModule.QueryModule;
|
|
|
|
namespace YLErp.Modules.TradeModule
|
|
{
|
|
/// <summary>
|
|
/// 场外期权交易导出测试
|
|
/// </summary>
|
|
[TestClass]
|
|
public class OtcTradeExportServiceTest : UnitTestBase
|
|
{
|
|
[TestMethod("测试场外期权交易导出")]
|
|
public void TestImportTemplate()
|
|
{
|
|
var list = new OtcTradeListExportService(new OptUserInfo(0, "UnitTest")).SearchOptionTradeListForExport(new Model.TradeReq
|
|
{
|
|
TradeIds = "103506,103409"
|
|
}, new TradeQueryRequest { ShowAllTrades = true });
|
|
|
|
Assert.AreEqual(list.Count(), 2);
|
|
}
|
|
}
|
|
}
|