public virtual bool HasIntersectionPeriods( DateTime test ) { foreach ( ITimePeriod period in periods ) { if ( period.HasInside( test ) ) { return true; } } return false; }