Пример #1
0
        public void Deve_Enviar_Email()
        {
            var email = EmailMock.GetEmail();

            email.SetStatusSent();
            Assert.True(email.Status == Messages.Domains.Entities.StatusMailEnum.Sent);
        }
Пример #2
0
        public void Deve_Informar_Error_Email()
        {
            var email = EmailMock.GetEmail();

            email.SetStatusError("Error message");
            Assert.True(email.Status == Messages.Domains.Entities.StatusMailEnum.Error);
        }
Пример #3
0
        public void Deve_Criar_Email_Valido()
        {
            var email = EmailMock.GetEmail();

            Assert.NotNull(email);
            Assert.True(email.Status == Messages.Domains.Entities.StatusMailEnum.Sending);
        }
Пример #4
0
        public void Deve_Informar_Error_Email_Invalido()
        {
            var email = EmailMock.GetEmail();

            Assert.Throws <DomainException>(() =>
                                            email.SetStatusError("")
                                            );
        }