public void TestMissingUserName()
 {
     //todo pass in a stub/mock ldap service so we can test
     ActiveDirectoryAuthentication authentication = new ActiveDirectoryAuthentication("janedoe",null);
     LoginRequest credentials = new LoginRequest();
     bool isValid = authentication.Authenticate(credentials);
     Assert.IsFalse(isValid);
 }
 public void TestValidUserName()
 {
     //todo pass in a stub/mock ldap service so we can test
     ActiveDirectoryAuthentication authentication = new ActiveDirectoryAuthentication(userName, null);
     authentication.DomainName = domainName;
     LoginRequest credentials = new LoginRequest(userName);
     bool isValid = authentication.Authenticate(credentials);
     Assert.IsTrue(isValid);
 }