public void TetsStdEmails1() { var repoBl = new RepositoryBL(_repoMock.Object); var eMails = repoBl.GetStudentEmails().ToList(); Assert.IsTrue(eMails.Count == 100); }
public void Execute(IJobExecutionContext context) { IRepository repository = new Repository(); RepositoryBL repoBl = new RepositoryBL(repository); int wave = 1; // removes old and adds new Groups repository.DeleteGroups(); repoBl.CreateNewGroups(wave); MailSender mailSender = new MailSender(); List <string> eMails = repoBl.GetStudentEmails().ToList(); mailSender.SendMail("ЛНУ Курси", "Привіт!<br/> Прийшов Час зареєструватись на курси.", eMails); }