public void SaveExpelledStudentsTest() { List <BaseModel> results = dbContext.ResultsOfExamsRepository.GetAll(); List <ExpelledStudentDto> resultsOfSessions = sessionHelper.GetExpelledStudents(results); bool isSaved = DataToExcelFileHelper.SaveExpelledStudentsToXLSX(resultsOfSessions); Assert.IsTrue(isSaved); }
public void SaveResultsOfSessionByTeachersTest() { List <ResultsOfExam> results = dbContext.ResultsOfExamsRepository.GetAll(); List <ResultsOfSessionByTeacherDto> resultsOfSessions = sessionHelper.GetResultsOfSessionByTeacher(results); bool isSaved = DataToExcelFileHelper.SaveResultsOfSessionByTeacherToXLSX(resultsOfSessions); Assert.IsTrue(isSaved); }
public void SaveTotalResultsOfSessionsTest() { List <BaseModel> results = dbContext.ResultsOfExamsRepository.GetAll(); List <ResultOfSessionDto> resultsOfSessions = sessionHelper.GetTotalResultsOfSessions(results); bool isSaved = DataToExcelFileHelper.SaveResultsToXLSX(resultsOfSessions); Assert.IsTrue(isSaved); }