Esempio n. 1
0
        public void CanRefresh()
        {
            var command = new RefreshCommand(_view);
            command.Execute(null);

            command.CanExecute(null).ShouldBe(true);
            _view.ShouldHaveBeenCalled(v=>v.UpdateScreen());
        }
Esempio n. 2
0
 // ReSharper disable SuggestBaseTypeForParameter
 public CommandContainer(
     FullscreenCommand fullScreenCommand,
     RefreshCommand refreshCommand,
     ShowSettingsCommand showSettingsCommand)
 {
     _fullscreenCommand   = fullScreenCommand;
     _refreshCommand      = refreshCommand;
     _showSettingsCommand = showSettingsCommand;
 }
Esempio n. 3
0
        // ReSharper disable SuggestBaseTypeForParameter
        public CommandContainer(
			FullscreenCommand fullScreenCommand, 
			RefreshCommand refreshCommand, 
			ShowSettingsCommand showSettingsCommand)
        {
            _fullscreenCommand = fullScreenCommand;
            _refreshCommand = refreshCommand;
            _showSettingsCommand = showSettingsCommand;
        }