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); }
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); }