public void UnRegisteredViewCtrlCannotChangeStatusException()
        {
            //Arrange
            var mockedCtrl = Substitute.For<IView>();
            var register = new ModeTrackingController();

            //Assert
            Assert.Throws(Is.TypeOf<ViewCtrlNotRegisteredException>(), delegate { register.ChangeActiveModeStatus(ExecutionStatus.Canceled, mockedCtrl); });
        }
        public void RegisteredViewCtrlCanChangeStatus()
        {
            //Arrange
            var mockedCtrl = Substitute.For<IView>();
            var register = new ModeTrackingController();

            //Act
            register.RegisterToUpdate(mockedCtrl);
            register.ChangeActiveModeStatus(ExecutionStatus.Running, mockedCtrl);

            //Assert
            Assert.AreEqual(ExecutionStatus.Running, register.Status);
        }