Exemplo n.º 1
0
        private static void ValidateStartupActions(StartupActionState expectedSartupActionState)
        {
            Assert.AreEqual(_startupActionsToTest.Count, 2);

            foreach (var startupAction in _startupActionsToTest)
            {
                Assert.AreEqual(((IStartupActionState)startupAction).StartupActionState, expectedSartupActionState);
            }
        }
 public virtual void Stop()
 {
     StartupActionState |= StartupActionState.StopCalled;
 }
 public virtual void Start()
 {
     StartupActionState = StartupActionState.StartCalled;
 }