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); }
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); }