public void CreateRequestMail_ReturnsRequestMail()
        {
            var         composer    = new EmailComposer(GetHolidayApplication());
            MailMessage requestMail = composer.CreateRequestMail();

            Assert.AreEqual(_requester.GetEmail(), requestMail.From);
            Assert.AreEqual(_manager.GetEmail(), requestMail.To);
            Assert.AreEqual("Holiday Request", requestMail.Subject, true);
        }
Exemplo n.º 2
0
        public void Request(HolidayApplication holidayApplication)
        {
            var composer = new EmailComposer(holidayApplication);

            Email.Send(composer.CreateRequestMail());
        }