public void CreateRejectionMail_ReturnsRejectedMail()
        {
            var         composer    = new EmailComposer(GetHolidayApplication());
            MailMessage requestMail = composer.CreateRejectionMail();

            Assert.AreEqual(_manager.GetEmail(), requestMail.From);
            Assert.AreEqual(_requester.GetEmail(), requestMail.To);
            Assert.IsTrue(requestMail.Subject.StartsWith("[rejected]",
                                                         StringComparison.InvariantCultureIgnoreCase));
        }
Ejemplo n.º 2
0
        public void Reject(HolidayApplication holidayApplication)
        {
            var composer = new EmailComposer(holidayApplication);

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