예제 #1
0
        /// <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);
        }
예제 #2
0
        public void Constructor_WhenViewModelIsNull_ExceptionExpected()
        {
            WindowOneViewModel viewModel = null;

            // ReSharper disable once ExpressionIsAlwaysNull
            // ReSharper disable once ObjectCreationAsStatement
            Assert.Catch <ArgumentNullException>(() => new WindowOneInitialState(viewModel));
        }