Пример #1
0
 public void adding_AfterInitializing_handler_after_initialization_throws_error()
 {
     Assert.Throws(typeof(LifecycleException), new TestDelegate(() =>
     {
         lifecycle.Initialize();
         lifecycle.AfterInitializing(nop);
     }
                                                                ));
 }
Пример #2
0
 public IContext AfterInitializing(Action handler)
 {
     _lifecycle.AfterInitializing(handler);
     return(this);
 }