示例#1
0
        public void Get_Count_Test()
        {
            DatabaseLogic datbaseLogic = new DatabaseLogic(new DatabaseConnection());
            int?          i            = datbaseLogic.GetFundCount("Gym");

            Assert.AreNotEqual(null, i);
        }
示例#2
0
        int PagesCount(string fundName)
        {
            int pageCount = 0;

            pageCount   = _databaseLogic.GetFundCount(fundName);
            _rowsCount  = pageCount;
            pageCount   = (pageCount % 10) == 0 ? pageCount / 10 : (pageCount / 10) + 1;
            _pagesCount = pageCount;

            return(pageCount);
        }