Esempio n. 1
0
        public void TestRegisterMatch()
        {
            Match    match           = new Match();
            DateTime dateTimeCurrent = DateTime.Now;

            match.dateHour   = dateTimeCurrent;
            match.idSentence = 1;
            QueryDB queryDB = new QueryDB();

            idMatch = queryDB.RegisterMatch(match);
            Assert.IsNotNull(idMatch);
        }
Esempio n. 2
0
        public void TestErrorRegisterMatch()
        {
            Match    match           = new Match();
            DateTime dateTimeCurrent = DateTime.Now;

            match.dateHour = dateTimeCurrent;
            QueryDB queryDB = new QueryDB();
            int     idMatch;

            idMatch = queryDB.RegisterMatch(match);
            Thread.Sleep(2000);
            Assert.AreNotEqual(0, idMatch);
        }