private static ComplianceRootViewModel GetComplianceRoot() { var mainViewModel = (MainViewModel)StructureHelper.GetShellActiveItem(); var firstModule = mainViewModel.Modules.OfType <ModuleViewModel>().First(t => t.Name == "Compliance"); return((ComplianceRootViewModel)(firstModule.RootViewModel)); }
public void Initialization_LoginScreenIsActive() { var rootObject = CreateRootObject(); StructureHelper.SetRootObject(rootObject); var activeItem = StructureHelper.GetShellActiveItem(); Assert.IsInstanceOf <LoginViewModel>(activeItem); }
public void ThenUserReturnsToTheLoginScreen() { var activeItem = StructureHelper.GetShellActiveItem(); Assert.IsInstanceOf <LoginViewModel>(activeItem); }
public void ThenApplicationNavigatesToTheMainScreen() { var activeItem = StructureHelper.GetShellActiveItem(); Assert.IsInstanceOf <MainViewModel>(activeItem); }