예제 #1
0
        private static ComplianceRootViewModel GetComplianceRoot()
        {
            var mainViewModel = (MainViewModel)StructureHelper.GetShellActiveItem();
            var firstModule   = mainViewModel.Modules.OfType <ModuleViewModel>().First(t => t.Name == "Compliance");

            return((ComplianceRootViewModel)(firstModule.RootViewModel));
        }
예제 #2
0
        public void Initialization_LoginScreenIsActive()
        {
            var rootObject = CreateRootObject();

            StructureHelper.SetRootObject(rootObject);

            var activeItem = StructureHelper.GetShellActiveItem();

            Assert.IsInstanceOf <LoginViewModel>(activeItem);
        }
예제 #3
0
        public void ThenUserReturnsToTheLoginScreen()
        {
            var activeItem = StructureHelper.GetShellActiveItem();

            Assert.IsInstanceOf <LoginViewModel>(activeItem);
        }
예제 #4
0
        public void ThenApplicationNavigatesToTheMainScreen()
        {
            var activeItem = StructureHelper.GetShellActiveItem();

            Assert.IsInstanceOf <MainViewModel>(activeItem);
        }