public void コンストラクタでコンシューマキーを設定する()
 {
     OAuth.OAuthConsumer consumer = new OAuth.OAuthConsumer( "aaa", "bbb" );
     Assert.AreEqual( "aaa", consumer.ConsumerKey );
     Assert.AreEqual( "bbb", consumer.ConsumerSecret );
     Assert.AreEqual( "", consumer.Token );
     Assert.AreEqual( "", consumer.TokenSecret );
 }
 public void トークンキーを設定する()
 {
     OAuth.OAuthConsumer consumer = new OAuth.OAuthConsumer( "aaa", "bbb" );
     consumer.SetTokenWithSecret( "ccc", "ddd" );
     Assert.AreEqual( "aaa", consumer.ConsumerKey );
     Assert.AreEqual( "bbb", consumer.ConsumerSecret );
     Assert.AreEqual( "ccc", consumer.Token );
     Assert.AreEqual( "ddd", consumer.TokenSecret );
 }
 /**
 * construct OAuth object
 */
 public EchoOAuth(string consumer_key, string consumer_secret, string oauth_token, string oauth_token_secret)
 {
     this.SignatureType = OAuth.SignatureTypes.HMACSHA1;
     this.consumer = new OAuth.OAuthConsumer(consumer_key, consumer_secret);
     if (!string.IsNullOrEmpty(oauth_token) && !string.IsNullOrEmpty(oauth_token_secret))
     {
         this.token = new OAuth.OAuthToken(oauth_token, oauth_token_secret);
     }
     else
     {
         this.token = null;
     }
 }