public void ChangeUtilityLoadsAnotherUtilityViewModel()
        {
            var newUtility = new UtilityViewModelStub(_mainViewModel);
            _utilityViewModel.ChangeUtilityViewModel(newUtility);

            Assert.AreEqual(newUtility, _mainViewModel.CurrentUtilityViewModel);
        }
        public void LoadUtilityViewModelAssignsItToProperty()
        {
            var utilityViewModel = new UtilityViewModelStub(_viewModel);
            _viewModel.LoadUtilityViewModel(utilityViewModel);

            Assert.AreEqual(utilityViewModel, _viewModel.CurrentUtilityViewModel);
        }
 public void ThrowsExceptionIfMainViewModelIsNull()
 {
     _utilityViewModel = new UtilityViewModelStub(null);
 }
 public void Initialize()
 {
     _mainViewModel = new MainViewModel();
     _utilityViewModel = new UtilityViewModelStub(_mainViewModel);
     _mainViewModel.CurrentUtilityViewModel = _utilityViewModel;
 }