コード例 #1
0
 public PlaceholderRewriter_Tests()
 {
     settings    = new CassetteSettings();
     tracker     = new Mock <IPlaceholderTracker>();
     httpContext = new Mock <HttpContextBase>();
     response    = new Mock <HttpResponseBase>();
     items       = new Dictionary <string, object>();
     httpContext.SetupGet(c => c.Items).Returns(items);
     httpContext.SetupGet(c => c.Response).Returns(response.Object);
     rewriter = new PlaceholderRewriter(settings, () => tracker.Object, () => httpContext.Object);
 }
コード例 #2
0
 public PlaceholderRewriter_Tests()
 {
     settings = new CassetteSettings();
     tracker = new Mock<IPlaceholderTracker>();
     httpContext = new Mock<HttpContextBase>();
     response = new Mock<HttpResponseBase>();
     items = new Dictionary<string, object>();
     httpContext.SetupGet(c => c.Items).Returns(items);
     httpContext.SetupGet(c => c.Response).Returns(response.Object);
     rewriter = new PlaceholderRewriter(settings, () => tracker.Object, () => httpContext.Object);
 }