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