public void Can_resolve_uri() { string apiUrl = ConfigurationManager.AppSettings["Wrapper.BaseUrl"]; string consumerKey = ConfigurationManager.AppSettings["Wrapper.ConsumerKey"]; string resolve = new HttpGetResolver().Resolve(new Uri(string.Format("{0}/status?oauth_consumer_key={1}", apiUrl, consumerKey)), "GET", new WebHeaderCollection()); Assert.That(resolve, Is.Not.Empty); }
public void Can_resolve_uri() { string apiUrl = "http://api.7digital.com/1.2"; string consumerKey = new AppSettingsCredentials().ConsumerKey; string resolve = new HttpGetResolver().Resolve(new Uri(string.Format("{0}/status?oauth_consumer_key={1}", apiUrl, consumerKey)), "GET", new Dictionary<string,string>()); Assert.That(resolve, Is.Not.Empty); }
public void SetUp() { IOAuthCredentials oAuthCredentials = EssentialDependencyCheck<IOAuthCredentials>.Instance; IApiUri apiUri = EssentialDependencyCheck<IApiUri>.Instance; var httpGetResolver = new HttpGetResolver(); var urlSigner = new UrlSigner(); _endpointResolver = new EndpointResolver(httpGetResolver, urlSigner, oAuthCredentials, apiUri); }