/// <summary> /// Показывает первое окно /// </summary> /// <param name="context"></param> protected override void DoGo(IContext context) { var viewModel = new WindowOneViewModel(context); context.WindowManager.ShowWindow(viewModel, false); context.State = new WindowOneInitialState(viewModel); }
public void Constructor_WhenViewModelIsNull_ExceptionExpected() { WindowOneViewModel viewModel = null; // ReSharper disable once ExpressionIsAlwaysNull // ReSharper disable once ObjectCreationAsStatement Assert.Catch <ArgumentNullException>(() => new WindowOneInitialState(viewModel)); }