예제 #1
0
        public void TestErrorRegisterReport()
        {
            ReportMisConduct reportMisConduct = new ReportMisConduct();
            DateTime         dateTimeCurrent  = DateTime.Now;

            reportMisConduct.dateHour          = dateTimeCurrent;
            reportMisConduct.idReportedPlayer  = "MiroStart";
            reportMisConduct.idReportingPlayer = null;
            QueryDB queryDB = new QueryDB();
            bool    isRegisterReport;

            isRegisterReport = queryDB.RegisterReport(reportMisConduct);
            Thread.Sleep(2000);
            Assert.IsTrue(isRegisterReport);
        }
예제 #2
0
        public void TestRegisterReport()
        {
            ReportMisConduct reportMisConduct = new ReportMisConduct();
            DateTime         dateTimeCurrent  = DateTime.Now;

            reportMisConduct.dateHour   = dateTimeCurrent;
            reportMisConduct.typeReport = "ABUSO VERBAL " +
                                          "Lenguaje ofensivo, Acoso";
            reportMisConduct.idReportedPlayer  = "MariaFer13";
            reportMisConduct.idReportingPlayer = "MiroStart";
            QueryDB queryDB = new QueryDB();
            bool    isRegisterReport;

            isRegisterReport = queryDB.RegisterReport(reportMisConduct);
            Assert.IsTrue(isRegisterReport);
        }