コード例 #1
0
        public void ValidateOk()
        {
            var command = new SendEmailCommand(emailAddress: "*****@*****.**", emailOrigin: "*****@*****.**"
                                               , message: "mensagem", body: "corpo");

            Assert.AreEqual(true, command.Validate());
        }
コード例 #2
0
        public void ValidateFail()
        {
            var command = new SendEmailCommand(emailAddress: "email", emailOrigin: "email"
                                               , message: "", body: "");

            Assert.AreEqual(false, command.Validate());
        }