public void AfterPropertiesSet()
{
Assert.NotNull(Host, "EmailTasklet : The Host must be specified");
Assert.NotNull(From, "EmailTasklet : The From address must be specified");
Assert.State(_to.Any() || _cc.Any() || _bcc.Any(), "EmailTasklet : at least one recipient must be specified");
Assert.NotNull(Subject, "EmailTasklet : the subject must be specified");
Assert.NotNull(Body, "EmailTasklet : the body resource must be specified");
Assert.State(Body.Exists(), "EmailTasklet : the body resource must exist");
Assert.IsTrue(LineLength >= 0, "LineLength : if specified, the line LineLength must be equals or superior to 0");
}
}