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