public void TestApply()
        {
            IConcern concern = Create();
            AssertNotNull( concern );
            concern.Init( m_kernel );

            IComponentModel model =
                new DefaultComponentModelBuilder(m_kernel).BuildModel(
                    "a", typeof(IMyService), typeof(DummyComponent) );

            DummyComponent component = new DummyComponent();

            concern.Apply( model, component );

            AssertComponent( model, component );
        }
 public override void AssertComponent( IComponentModel model, DummyComponent component )
 {
     Assert( component.logEnabled );
 }
 public override void AssertComponent( IComponentModel model, DummyComponent component )
 {
     Assert( component.stop );
     Assert( component.dispose );
 }
 public override void AssertComponent( IComponentModel model, DummyComponent component )
 {
     Assert( component.initialize );
 }
 public override void AssertComponent( IComponentModel model, DummyComponent component )
 {
     Assert( component.configure );
 }
 public abstract void AssertComponent( IComponentModel model, DummyComponent component );
 public override void AssertComponent( IComponentModel model, DummyComponent component )
 {
     Assert( component.start );
 }