public void ValidateOk() { var command = new SendEmailCommand(emailAddress: "*****@*****.**", emailOrigin: "*****@*****.**" , message: "mensagem", body: "corpo"); Assert.AreEqual(true, command.Validate()); }
public void ValidateFail() { var command = new SendEmailCommand(emailAddress: "email", emailOrigin: "email" , message: "", body: ""); Assert.AreEqual(false, command.Validate()); }