public void Capture_Should_Use_HttpForm() { _httpForm.Expect(h => h.GetAsync(It.IsAny <string>())).Verifiable(); _thumbnail.Capture(Url); _httpForm.Verify(); }
public void Capture_Should_Use_HttpForm() { _httpForm.Setup(h => h.GetAsync(It.IsAny <HttpFormGetRequest>())).Verifiable(); _thumbnail.Capture(Url); _httpForm.Verify(); }
public void Should_be_able_to_capture() { const string Url = "http://images.pageglimpse.com/v1/thumbnails/request?devkey=myKey&url=http://shrinkr.com"; http.Setup(h => h.GetAsync(Url, It.IsAny <string>(), It.IsAny <int>(), It.IsAny <bool>(), It.IsAny <int>(), It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>(), It.IsAny <IDictionary <string, string> >(), It.IsAny <IDictionary <string, string> >(), It.IsAny <Action <HttpResponse> >(), It.IsAny <Action <Exception> >())).Verifiable(); thumbnail.Capture("http://shrinkr.com"); http.Verify(); }