Beispiel #1
0
        static void Main(string[] args)
        {
            var example = new PredicatedDecoratorExample(
                new PredicatedComponent(new ConcreteComponent(),
                                        new TodayIsAnEvenDayOfTheMonthPredicate(
                                            new DataTester())));

            example.Run();
        }
 static void Main(string[] args)
 {
     var example = new PredicatedDecoratorExample(new PredicatedComponent(new ConcreteComponent(), new TodayIsAnEvenDayOfTheMonthPredicate(new DateTester())));
     example.Run();
 }
 static void Main(string[] args)
 {
     var example = new PredicatedDecoratorExample(new PredicatedComponent(new ConcreteComponent(), new DateTester()));
     example.Run();
 }
Beispiel #4
0
        static void Main(string[] args)
        {
            var example = new PredicatedDecoratorExample(new ConcreteComponent());

            example.Run();
        }