コード例 #1
0
        public void TestLoginValidCredentials()
        {
            var SoapService = new AuthenticationServiceSOAP();
            var validationResults = SoapService.AuthenticateUser(new Models.UserDetails() { Password = "******", UserName = "******" });

            Assert.True(validationResults.IsAuthenticated);
        }
コード例 #2
0
 public void TestLoginValidCredentialsAndGroups()
 {
     var SoapService = new AuthenticationServiceSOAP();
     var validationResults = SoapService.AuthenticateUserAndGetGroupMemberships(new Models.UserDetails() { Password = "******", UserName = "******" });
     Assert.True(validationResults.IsAuthenticated && validationResults.ListOfADGroups.Count > 0);
 }