コード例 #1
0
 public void Run()
 {
     DateTester dateTester = new DateTester();
     if (dateTester.TodayIsAnEvenDayOfTheMonth)
     {
         component.Something();
     }
 }
コード例 #2
0
 public TodayIsAnEvenDayOfTheMonthPredicate(DateTester dateTester)
 {
     this.dateTester = dateTester;
 }
コード例 #3
0
 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;
 }