public virtual bool IsValid( DateTime date) { return date.CompareTo(NotBefore) >= 0 && date.CompareTo(NotAfter) <= 0; }