public void ReadSession() { CreateSession(); var session = _dao.Read(sessionData.SecurityToken); Assert.IsNotNull(session); Assert.AreEqual(sessionData.SecurityToken, session.SecurityToken); }
public void OutputTest() { var student = new StudentDao(); var session = new SessionDao(); var group = new GroupDao(); var report = new Report(); var ex = new ExcelIO(); ex.Output(report.GetResultsByStudent(session.Read(1), group.Read(2)), @"C:\Users\lenni\source\repos\ZimnitskiYury\epam_gstu\task6\output.xlsx"); ex.Output(report.GetGrades(session.Read(1)), @"C:\Users\lenni\source\repos\ZimnitskiYury\epam_gstu\task6\output2.xlsx"); ex.Output(report.GetSessionExpelledByStudent(session.Read(1), 50), @"C:\Users\lenni\source\repos\ZimnitskiYury\epam_gstu\task6\output3.xlsx"); Assert.Fail(); }
public void OutputTest() { var report = new Report(); var ses = new SessionDao(); var s1 = ses.Read(1); var ex = new ExcelIO(); ex.Output(report.GetAvgGradeBySpecialities(s1), @"C:\Users\lenni\source\repos\ZimnitskiYury\epam_gstu\task7\output5.xlsx"); Assert.Fail(); }