コード例 #1
0
        public void LoginTest()
        {
            var username = "******";
            var password = "******";
            var login    = new LoginImpl();
            var user     = login.Login(username, password);

            Assert.IsNotNull(user);
        }
コード例 #2
0
        private void Login()
        {
            var user = _login.Login(Username, Password);

            //StringValidationRule rule = new StringValidationRule(false,false,StringValidationRule.LimitComparisionType.MoreThanOrEqual,6);
            if (user == null)
            {
                Console.WriteLine("Fail");
                MessageBox.Show("Wrong Username or Password", "Login Fail", MessageBoxButton.OK, MessageBoxImage.Error);
            }
            else
            {
                var navigationParameter = new NavigationParameters();
                navigationParameter.Add("name", new DTO.Member());
                _regionManager.RequestNavigate("ContentRegion", "ProjectList", navigationParameter);
            }
        }