public void WhenRepositoryIsNotInitialized_ShouldDisableAllControls(bool repoIsArmed) { A.CallTo(() => m_repository.IsArmed).Returns(repoIsArmed); m_controller.OnShow(); A.CallTo(() => m_view.SetEnable(repoIsArmed)).MustHaveHappened(); }
public void OnShow() { m_view.SetEnable(m_repository.IsArmed); }