예제 #1
0
 public void add_behaviour_to(IRepresentAMethodInvocation invocation)
 {
     timer.start();
     invocation.run();
     timer.stop();
     logger.info("This is how long it took");
 }
예제 #2
0
        public void add_behaviour_to(IRepresentAMethodInvocation invocation)
        {
            if (constraint())
            {
                invocation.run();
            }

            throw new NotImplementedException("This behaviour does not meet the currently defined constraint");
        }
예제 #3
0
 public void add_behaviour_to(IRepresentAMethodInvocation invocation)
 {
 }
예제 #4
0
 public void add_behaviour_to(IRepresentAMethodInvocation invocation)
 {
     first.add_behaviour_to(invocation);
     second.add_behaviour_to(invocation);
 }