Example #1
0
 // ReSharper disable SuggestBaseTypeForParameter
 public CommandContainer(
     FullscreenCommand fullScreenCommand,
     RefreshCommand refreshCommand,
     ShowSettingsCommand showSettingsCommand)
 {
     _fullscreenCommand   = fullScreenCommand;
     _refreshCommand      = refreshCommand;
     _showSettingsCommand = showSettingsCommand;
 }
Example #2
0
        // ReSharper disable SuggestBaseTypeForParameter
        public CommandContainer(
			FullscreenCommand fullScreenCommand, 
			RefreshCommand refreshCommand, 
			ShowSettingsCommand showSettingsCommand)
        {
            _fullscreenCommand = fullScreenCommand;
            _refreshCommand = refreshCommand;
            _showSettingsCommand = showSettingsCommand;
        }
Example #3
0
        public void GoesNotFullscreen_WhenAlready_FullScreen()
        {
            var window = new Window
            {
                WindowStyle = WindowStyle.None,
                Topmost = true,
                WindowState = WindowState.Maximized
            };

            _view.Expect(v => v.Window).Return(window).Repeat.Any();

            var command = new FullscreenCommand(_view);
            command.Execute(null);

            window.WindowStyle.ShouldBe(WindowStyle.SingleBorderWindow);
            window.Topmost.ShouldBe(false);
            window.WindowState.ShouldBe(WindowState.Normal);
        }