/// <summary> /// Test constructor which allows for using fake credential stores /// </summary> internal VsoAadAuthentication( ICredentialStore personalAccessTokenStore, ITokenStore adaRefreshTokenStore, ITokenStore vsoIdeTokenCache, IVsoAuthority vsoAuthority) : base(personalAccessTokenStore, adaRefreshTokenStore, vsoIdeTokenCache, vsoAuthority) { }
internal BaseVsoAuthentication( ICredentialStore personalAccessTokenStore, ITokenStore adaRefreshTokenStore, ITokenStore vsoIdeTokenCache, IVsoAuthority vsoAuthority) : this(VsoTokenScope.ProfileRead, personalAccessTokenStore) { Debug.Assert(adaRefreshTokenStore != null, "The adaRefreshTokenStore paramter is null or invalid."); Debug.Assert(vsoIdeTokenCache != null, "The vsoIdeTokenCache paramter is null or invalid."); Debug.Assert(vsoAuthority != null, "The vsoAuthority paramter is null or invalid."); this.AdaRefreshTokenStore = adaRefreshTokenStore; this.VsoIdeTokenCache = vsoIdeTokenCache; this.VsoAuthority = vsoAuthority; this.VsoAdalTokenCache = TokenCache.DefaultShared; }