コード例 #1
0
ファイル: HtsGenerator.cs プロジェクト: HongSeokHwan/legacy
 public static IHTS Generate(String htsType, Account account)
 {
     IHTS hts = null;
     switch (htsType)
     {
         case "PB":
             hts = new PBHTS(account);
             break;
         case "Sim":
             hts = new SimHTS(account);
             break;
         case "KB":
             hts = GetKBHts(account);
             break;
         default:
             {
                 logger.Error("{0} 알수 없는 IHTS type", hts);
                 Util.KillWithNotice("Unknown IHTS type");
                 break;
             }
     }
     return hts;
 }
コード例 #2
0
ファイル: SimHTSTest.cs プロジェクト: HongSeokHwan/legacy
 public void IsRealTest()
 {
     Account account = new Account("SimAccount", "", Account.OrderLineType.FutureOptionSpreadLine, "Sim");
     SimHTS target = new SimHTS(account);
     bool expected = false;
     bool actual;
     actual = target.IsReal();
     Assert.AreEqual(expected, actual);
 }