protected override void OnStart(object rootObject) { var shell = (ShellViewModel)rootObject; StructureHelper.SetRootObject(shell); ScreenExtensions.TryActivate(shell); ScreenExtensions.TryActivate(StructureHelper.GetLogin()); }
public void Initialization_LoginScreenIsActive() { var rootObject = CreateRootObject(); StructureHelper.SetRootObject(rootObject); var activeItem = StructureHelper.GetShellActiveItem(); Assert.IsInstanceOf <LoginViewModel>(activeItem); }
public void WhenIOpenTheApplication() { ScenarioHelper.CreateRootObject(); StructureHelper.SetRootObject(ScenarioHelper.RootObject); ScreenExtensions.TryActivate(ScenarioHelper.RootObject); }