public GetMessageHandler(TwitterExecute exe, IDictionary <string, string> parameters, string url, bool authorizerSupportsCompression) { this.exe = exe; this.parameters = parameters; this.url = url; this.authorizerSupportsCompression = authorizerSupportsCompression; }
public void ThreeParamCtorDefaults() { ITwitterExecute execute = new TwitterExecute(); string baseUrl = "http://api.twitter.com/1/"; string searchUrl = "http://search.twitter.com/"; TwitterContext ctx = new TwitterContext(execute, baseUrl, searchUrl); Assert.AreEqual(baseUrl, ctx.BaseUrl); Assert.AreEqual(searchUrl, ctx.SearchUrl); }
public GetMessageFilter(TwitterExecute exe, IDictionary<string, string> parameters, string url, IHttpFilter innerFilter) { this.exe = exe; this.parameters = parameters; this.url = url; if (innerFilter == null) { throw new ArgumentException("innerFilter cannot be null."); } this.innerFilter = innerFilter; }
public PostMessageFilter(TwitterExecute exe, IDictionary<string, string> parameters, string url, IHttpFilter innerFilter, CancellationToken cancellationToken) { this.exe = exe; this.parameters = parameters; this.url = url; if (innerFilter == null) { throw new ArgumentException("innerFilter cannot be null."); } this.innerFilter = innerFilter; this.cancellationToken = cancellationToken; }
public GetMessageHandler(TwitterExecute exe, IDictionary<string, string> parameters, string url) { this.exe = exe; this.parameters = parameters; this.url = url; }
public PostMessageHandler(TwitterExecute exe, IDictionary <string, string> postData, string url) { this.exe = exe; this.postData = postData; this.url = url; }
public PostMessageHandler(TwitterExecute exe, IDictionary<string, string> postData, string url) { this.exe = exe; this.postData = postData; this.url = url; }
public GetMessageHandler(TwitterExecute exe, IDictionary <string, string> parameters, string url) { this.exe = exe; this.parameters = parameters; this.url = url; }
public TwitterExecuteErrorHandlingTests() { var authMock = new Mock <ITwitterAuthorizer>(); twitExe = new TwitterExecute(authMock.Object); }