private void Get() { _httpForm.Expect(f => f.Get(It.IsAny <string>())).Returns("A dummy response").Verifiable(); cache.Expect(c => c.Set(It.IsAny <string>(), It.IsAny <string>(), It.IsAny <DateTime>())).Verifiable(); _cachingHttpForm.Get("http://www.test.com"); }
private void Get() { _httpForm.Setup(f => f.Get(It.IsAny <HttpFormGetRequest>())).Returns(new HttpFormResponse { Response = "A dummy response" }); cache.Setup(c => c.Set(It.IsAny <string>(), It.IsAny <HttpFormResponse>(), It.IsAny <DateTime>())).Verifiable(); _cachingHttpForm.Get(BuildRequest()); }