public void CheckInsert() { int firstState = dao.FindAll().Count; InsertTeams(); int secondState = dao.FindAll().Count; Assert.IsTrue(firstState == (secondState - 1)); }
public IEnumerable <Team> GetAll() { ITeamDao TeamDao = DalFactory.CreateTeamDao(database); return(TeamDao.FindAll()); }