示例#1
0
        protected override void OnStart(object rootObject)
        {
            var shell = (ShellViewModel)rootObject;

            StructureHelper.SetRootObject(shell);
            ScreenExtensions.TryActivate(shell);
            ScreenExtensions.TryActivate(StructureHelper.GetLogin());
        }
示例#2
0
        public void Initialization_LoginScreenIsActive()
        {
            var rootObject = CreateRootObject();

            StructureHelper.SetRootObject(rootObject);

            var activeItem = StructureHelper.GetShellActiveItem();

            Assert.IsInstanceOf <LoginViewModel>(activeItem);
        }
示例#3
0
 public void WhenIOpenTheApplication()
 {
     ScenarioHelper.CreateRootObject();
     StructureHelper.SetRootObject(ScenarioHelper.RootObject);
     ScreenExtensions.TryActivate(ScenarioHelper.RootObject);
 }