public void Test_SecurityInfoDAO_GetAll() { var dbdao = new SecurityInfoDAO(); List <SecurityItem> items = dbdao.Get("", SecurityType.All); Assert.IsNotNull(items); Assert.IsTrue(items.Count > 0); }
public void Test_SecurityInfoDAO_GetSingle() { var dbdao = new SecurityInfoDAO(); List <SecurityItem> items = dbdao.Get("000001", SecurityType.Stock); Assert.IsNotNull(items); Assert.IsTrue(items.Count == 1); }
private List <SecurityItem> GetSecuList() { if (_secuItemList == null || _secuItemList.Count == 0) { _secuItemList = _dbdao.Get(SecurityType.All); } return(_secuItemList); }
public List <SecurityItem> GetAllItems() { if (_secuItems == null || _secuItems.Count == 0) { _secuItems = _dbdao.Get(SecurityType.All); } return(_secuItems); }