Beispiel #1
0
        public void GetOneDayByIDError()
        {
            MatchDao MatchDao = new MatchDao(database);

            MatchDao.DeleteAll();

            Assert.IsNull(MatchDao.FindById(1));
        }
Beispiel #2
0
        public static void Clear(IDatabase database)
        {
            PlayerDao     p = new PlayerDao(database);
            TournamentDao t = new TournamentDao(database);
            MatchDao      m = new MatchDao(database);
            StatisticDao  s = new StatisticDao(database);

            s.DeleteAll();
            Console.WriteLine("cleared statistics...");
            m.DeleteAll();
            Console.WriteLine("cleared matches...");
            t.DeleteAll();
            Console.WriteLine("cleared Tournaments...");
            p.DeleteAll();
            Console.WriteLine("cleared player...");
        }