private void MakePrimaryStatRequest()
        {
            _uiStateController.IncUiLock();

            _uiThreadInvoker.Dispatch(() => DataAvailable = false);
            _primaryStatRequestCommand.Execute(null);
        }
        public void Ctr_CallsIncOnStateController()
        {
            //Arrange

            //Act
            _uiLockerContext = new UiLockerContext(_uiStateController);

            //Assert
            A.CallTo(() => _uiStateController.IncUiLock()).MustHaveHappened();
        }
Пример #3
0
 public UiLockerContext(IUiStateController uiStateController)
 {
     _uiStateController = uiStateController;
     _uiStateController.IncUiLock();
 }