public void AuthenticationResultTrue()
 {
     AuthenticationRequest aq = new AuthenticationRequest();
     aq.UserName = "******";
     aq.Password = "******";
     aq.Domain = "localhost";
     
     AuthenticationResponse ar = auth.Authenticate(aq);
     Assert.IsTrue(ar.Result);
 }
예제 #2
0
 public AuthenticationResponse Authenticate (AuthenticationRequest req)
 {
     AuthenticationToken at =  new AuthenticationToken();
     at.Created = DateTime.Now;
     at.TTL = 3600;
     at.Value = "AUTHENTICATIONTOKEN";
     at.Domain = "localhost";
     
     AuthenticationResponse ar = new AuthenticationResponse();
     ar.Result = true;
     ar.Token = at;
     
     return ar;
 }