public void GetDefaultCommissionChain()
        {
            ConcernManager manager = new ConcernManager();
            IConcern concern = manager.GetCommissionChain( m_kernel );
            AssertNotNull( concern );
            AssertNotNull( concern is ICreationConcern );
            AssertNotNull( concern is CreationConcern );
            AssertNotNull( concern.Next );

            concern = concern.Next;
            AssertNotNull( concern );
            AssertNotNull( concern is ICommissionConcern );
            AssertNotNull( concern is EnableLoggerConcern );

            concern = concern.Next;
            AssertNotNull( concern );
            AssertNotNull( concern is ICommissionConcern );
            AssertNotNull( concern is ContextConcern );

            concern = concern.Next;
            AssertNotNull( concern );
            AssertNotNull( concern is ICommissionConcern );
            AssertNotNull( concern is EnableLookupConcern );

            concern = concern.Next;
            AssertNotNull( concern );
            AssertNotNull( concern is ICommissionConcern );
            AssertNotNull( concern is ConfigureConcern );

            concern = concern.Next;
            AssertNotNull( concern );
            AssertNotNull( concern is ICommissionConcern );
            AssertNotNull( concern is InitializeConcern );

            concern = concern.Next;
            AssertNotNull( concern );
            AssertNotNull( concern is ICommissionConcern );
            AssertNotNull( concern is StartConcern );

            AssertNull( concern.Next );
        }
 public void GetDefaultCommissionConcerns()
 {
     ConcernManager manager = new ConcernManager();
     AssertNotNull( manager.CommissionConcerns );
     AssertEquals( 6, manager.CommissionConcerns.Count );
 }
        public void InvalidConcern()
        {
            ConcernManager manager = new ConcernManager();

            try
            {
                manager.Add( typeof(String) );
                Fail("Could not allow a type which is not a concern");
            }
            catch(ArgumentException)
            {
                // Expected
            }
        }
 public void Creation()
 {
     ConcernManager manager = new ConcernManager();
     AssertNotNull( manager );
 }
        public void GetDefaultDecommissionChain()
        {
            ConcernManager manager = new ConcernManager();
            IConcern concern = manager.GetDecommissionChain( m_kernel );
            AssertNotNull( concern );
            AssertNotNull( concern is IDecommissionConcern );
            AssertNotNull( concern is ShutdownConcern );
            AssertNotNull( concern.Next );

            concern = concern.Next;
            AssertNotNull( concern is IDestructionConcern );
            AssertNotNull( concern is DestructionConcern );
            AssertNull( concern.Next );
        }