public virtual void Validate()
{
if (Name == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
}
if (Method == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Method");
}
if (Schedule != null)
{
Schedule.Validate();
}
}
}