Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }