Пример #1
0
        public void Test_SecurityInfoDAO_GetAll()
        {
            var dbdao = new SecurityInfoDAO();
            List <SecurityItem> items = dbdao.Get("", SecurityType.All);

            Assert.IsNotNull(items);
            Assert.IsTrue(items.Count > 0);
        }
Пример #2
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);
        }
Пример #3
0
        private List <SecurityItem> GetSecuList()
        {
            if (_secuItemList == null || _secuItemList.Count == 0)
            {
                _secuItemList = _dbdao.Get(SecurityType.All);
            }

            return(_secuItemList);
        }
Пример #4
0
        public List <SecurityItem> GetAllItems()
        {
            if (_secuItems == null || _secuItems.Count == 0)
            {
                _secuItems = _dbdao.Get(SecurityType.All);
            }

            return(_secuItems);
        }