Пример #1
0
        protected override void beforeEach()
        {
            theWriter = new StubOutputWriter();
            Services.Inject <IOutputWriter>(theWriter);

            theWriter.Output.AppendHeader(HttpResponseHeaders.ETag, "12345");

            theResultingOutput = ClassUnderTest.CreateOuput(theResource, x => x.Invoke());
        }
Пример #2
0
        protected override void beforeEach()
        {
            theWriter = new StubOutputWriter();
            Services.Inject <IOutputWriter>(theWriter);

            theWriter.Output.AppendHeader(HttpResponseHeaders.ETag, "12345");
            theWriter.Output.AppendHeader("a", "1");

            theHeaders = new HeadersCache();
            Services.Inject <IHeadersCache>(theHeaders);

            theResultingOutput = ClassUnderTest.CreateOutput(theResource, () => MockFor <IActionBehavior>().Invoke());
        }