public void Get_Count_Test() { DatabaseLogic datbaseLogic = new DatabaseLogic(new DatabaseConnection()); int? i = datbaseLogic.GetFundCount("Gym"); Assert.AreNotEqual(null, i); }
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); }