Exemplo n.º 1
0
        public void ThenErrorMessageIsDisplayedWithTheFollowingText(string expectedErrorMessage)
        {
            var loginViewModel     = StructureHelper.GetLogin();
            var actualErrorMessage = loginViewModel.LoginFailureCause;

            StringAssert.AreEqualIgnoringCase(expectedErrorMessage, actualErrorMessage);
        }
Exemplo n.º 2
0
        public void ThenLocalAuthenticationIsAutomaticallySelectedInTheAuthenticationOptionsList()
        {
            var loginViewModel = StructureHelper.GetLogin();
            var selectedLogin  = loginViewModel.SelectedLogin;

            StringAssert.AreEqualIgnoringCase("Local authentication", selectedLogin);
        }
Exemplo n.º 3
0
        public void ThenUsernameTextBoxContains(string userName)
        {
            var loginViewModel = StructureHelper.GetLogin();
            var actualUserName = loginViewModel.UserName;

            Assert.AreEqual(userName, actualUserName);
        }
Exemplo n.º 4
0
        protected override void OnStart(object rootObject)
        {
            var shell = (ShellViewModel)rootObject;

            StructureHelper.SetRootObject(shell);
            ScreenExtensions.TryActivate(shell);
            ScreenExtensions.TryActivate(StructureHelper.GetLogin());
        }
Exemplo n.º 5
0
        public void WhenIPressTheLoginButton()
        {
            var loginViewModel = StructureHelper.GetLogin();

            loginViewModel.LoginCommand.Execute(null);
        }
Exemplo n.º 6
0
        public void WhenISelectTheNetworkAuthenticationOption()
        {
            var loginViewModel = StructureHelper.GetLogin();

            loginViewModel.SelectedLogin = "******";
        }
Exemplo n.º 7
0
        public bool IsActive()
        {
            var loginViewModel = StructureHelper.GetLogin();

            return(loginViewModel.IsActive);
        }
Exemplo n.º 8
0
        public void Login()
        {
            var loginViewModel = StructureHelper.GetLogin();

            loginViewModel.LoginCommand.Execute(null);
        }
Exemplo n.º 9
0
        public void SetUsername(string username)
        {
            var loginViewModel = StructureHelper.GetLogin();

            loginViewModel.UserName = username;
        }