// ReSharper disable SuggestBaseTypeForParameter public CommandContainer( FullscreenCommand fullScreenCommand, RefreshCommand refreshCommand, ShowSettingsCommand showSettingsCommand) { _fullscreenCommand = fullScreenCommand; _refreshCommand = refreshCommand; _showSettingsCommand = showSettingsCommand; }
public void CanShowSettingsCommand() { var settingsWindow = MockRepository.GenerateMock<ISettingsWindow>(); var command = new ShowSettingsCommand(_view, settingsWindow); command.Execute(null); command.CanExecute(null).ShouldBe(true); settingsWindow.ShouldHaveBeenCalled(s => s.ShowDialog()); }