public void LoginTest() { var username = "******"; var password = "******"; var login = new LoginImpl(); var user = login.Login(username, password); Assert.IsNotNull(user); }
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); } }