/// <summary>
 /// Initializes a new instance of the <see cref="ActiveDirectoryCredentialsFactory"/> class.
 /// </summary>
 /// <param name="authenticationServices">The authentication services</param>
 public ActiveDirectoryCredentialsFactory(AuthenticationServices authenticationServices)
 {
     this.authenticationServices = authenticationServices;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ActiveDirectoryCredentials"/> class.
 /// </summary>
 /// <param name="authenticationServices">The authentication services</param>
 /// <param name="resource">The resource for which to create the credentials</param>
 public ActiveDirectoryCredentials(AuthenticationServices authenticationServices, string resource)
 {
     this.authenticationServices = authenticationServices;
     this.resource = resource;
 }