public void Deve_Enviar_Email() { var email = EmailMock.GetEmail(); email.SetStatusSent(); Assert.True(email.Status == Messages.Domains.Entities.StatusMailEnum.Sent); }
public void Deve_Informar_Error_Email() { var email = EmailMock.GetEmail(); email.SetStatusError("Error message"); Assert.True(email.Status == Messages.Domains.Entities.StatusMailEnum.Error); }
public void Deve_Criar_Email_Valido() { var email = EmailMock.GetEmail(); Assert.NotNull(email); Assert.True(email.Status == Messages.Domains.Entities.StatusMailEnum.Sending); }
public void Deve_Informar_Error_Email_Invalido() { var email = EmailMock.GetEmail(); Assert.Throws <DomainException>(() => email.SetStatusError("") ); }