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; }
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); }