public void Run() { DateTester dateTester = new DateTester(); if (dateTester.TodayIsAnEvenDayOfTheMonth) { component.Something(); } }
public TodayIsAnEvenDayOfTheMonthPredicate(DateTester dateTester) { this.dateTester = dateTester; }
public PredicatedComponent(IComponent decoratedComponent, DateTester dateTester) { this.decoratedComponent = decoratedComponent; this.dateTester = dateTester; }