コード例 #1
0
        public void RemoveTokenValue_UnitTest()
        {
            Uri          serverUrl = default(Uri);
            IIssuedToken token     = default(IIssuedToken);

            ExecuteMethod(
                () => { return((ITfsClientCredentialStorage)GetInstance()); },
                instance =>
            {
                serverUrl = default(Uri);     //No Type
                token     = IssuedTokenImpl_UnitTests.GetInstance();
                RemoveTokenValue_PreCondition(instance, ref serverUrl, ref token);
            },
                instance => { instance.RemoveTokenValue(serverUrl, token); },
                instance => { RemoveTokenValue_PostValidate(instance, serverUrl, token); });
        }
コード例 #2
0
        public void StoreToken_UnitTest()
        {
            Uri          serverUrl            = default(Uri);
            IIssuedToken token                = default(IIssuedToken);
            Boolean      matchUserInformation = default(Boolean);

            ExecuteMethod(
                () => { return((ITfsClientCredentialStorage)GetInstance()); },
                instance =>
            {
                serverUrl            = default(Uri);     //No Type
                token                = IssuedTokenImpl_UnitTests.GetInstance();
                matchUserInformation = default(Boolean); //No Constructor
                StoreToken_PreCondition(instance, ref serverUrl, ref token, ref matchUserInformation);
            },
                instance => { instance.StoreToken(serverUrl, token, matchUserInformation); },
                instance => { StoreToken_PostValidate(instance, serverUrl, token, matchUserInformation); });
        }
コード例 #3
0
 partial void IsAuthenticated_SetCondition(ref IIssuedToken instance, ref Boolean setValue);
コード例 #4
0
 partial void StoreToken_PreCondition(ITfsClientCredentialStorage instance, ref Uri serverUrl, ref IIssuedToken token, ref Boolean matchUserInformation);
コード例 #5
0
 partial void StoreToken_PostValidate(ITfsClientCredentialStorage instance, Uri serverUrl, IIssuedToken token, Boolean matchUserInformation);
コード例 #6
0
 partial void RemoveTokenValue_PreCondition(ITfsClientCredentialStorage instance, ref Uri serverUrl, ref IIssuedToken token);
コード例 #7
0
 partial void RemoveTokenValue_PostValidate(ITfsClientCredentialStorage instance, Uri serverUrl, IIssuedToken token);
 partial void CurrentToken_SetCondition(ref IIssuedTokenProvider instance, ref IIssuedToken setValue);
コード例 #9
0
 /// <summary>
 ///     Gets the token.
 /// </summary>
 /// <param name="failedToken">The failed token.</param>
 /// <param name="timeout">The timeout.</param>
 /// <returns>IIssuedToken.</returns>
 /// <exception cref="DynCon.OSI.Core.Helpers.ToBeImplementedException"></exception>
 IIssuedToken IIssuedTokenProvider.GetToken(IIssuedToken failedToken, TimeSpan timeout)
 {
     throw new ToBeImplementedException();
 }
コード例 #10
0
 /// <summary>
 ///     Begins the get token.
 /// </summary>
 /// <param name="failedToken">The failed token.</param>
 /// <param name="timeout">The timeout.</param>
 /// <param name="canRefresh">The can refresh.</param>
 /// <param name="callback">The callback.</param>
 /// <param name="state">The state.</param>
 /// <returns>IAsyncResult.</returns>
 /// <exception cref="DynCon.OSI.Core.Helpers.ToBeImplementedException"></exception>
 IAsyncResult IIssuedTokenProvider.BeginGetToken(IIssuedToken failedToken, TimeSpan timeout, Boolean canRefresh, AsyncCallback callback, Object state)
 {
     throw new ToBeImplementedException();
 }
コード例 #11
0
 /// <summary>
 ///     Gets the token.
 /// </summary>
 /// <param name="failedToken">The failed token.</param>
 /// <param name="timeout">The timeout.</param>
 /// <param name="canRefresh">The can refresh.</param>
 /// <returns>IIssuedToken.</returns>
 /// <exception cref="DynCon.OSI.Core.Helpers.ToBeImplementedException"></exception>
 IIssuedToken IIssuedTokenProvider.GetToken(IIssuedToken failedToken, TimeSpan timeout, Boolean canRefresh)
 {
     throw new ToBeImplementedException();
 }
コード例 #12
0
 /// <summary>
 ///     Stores the token.
 /// </summary>
 /// <param name="serverUrl">The server URL.</param>
 /// <param name="token">The token.</param>
 /// <param name="matchUserInformation">The match user information.</param>
 /// <exception cref="DynCon.OSI.Core.Helpers.ToBeImplementedException"></exception>
 void ITfsClientCredentialStorage.StoreToken(Uri serverUrl, IIssuedToken token, Boolean matchUserInformation)
 {
     throw new ToBeImplementedException();
 }
コード例 #13
0
 /// <summary>
 ///     Removes the token value.
 /// </summary>
 /// <param name="serverUrl">The server URL.</param>
 /// <param name="token">The token.</param>
 /// <returns>Boolean.</returns>
 /// <exception cref="DynCon.OSI.Core.Helpers.ToBeImplementedException"></exception>
 Boolean ITfsClientCredentialStorage.RemoveTokenValue(Uri serverUrl, IIssuedToken token)
 {
     throw new ToBeImplementedException();
 }