Backend/e-suite.Core/eSuite.Core.UnitTests/MailRequestUnitTests.cs
2026-01-20 21:50:10 +00:00

35 lines
853 B
C#

using eSuite.Core.MailService;
using NUnit.Framework;
namespace eSuite.Core.UnitTests;
[TestFixture]
public class MailRequestUnitTests
{
[Test]
public void NewObject_Created_PropertiesProperlyCreated()
{
//Arrange
//Act
var mailRequest = new MailRequest();
//Assert
Assert.That(mailRequest.To, Is.Not.Null);
Assert.That(mailRequest.EmailType, Is.Not.Null);
Assert.That(mailRequest.Parameters, Is.Not.Null);
}
[Test]
public void MailRequest_Created_CanSetMailType()
{
//Arrange
//Act
var mailRequest = new MailRequest
{
EmailType = MailType.DisableAuthenticator
};
//Assert
Assert.That(mailRequest.EmailType, Is.EqualTo(MailType.DisableAuthenticator));
}
}