Ejemplo n.º 1
0
        private static TestObjectResultExecutor CreateExecutor(
            IOptions <MvcOptions> options       = null,
            ActionBindingContext bindingContext = null)
        {
            var bindingContextAccessor = new ActionBindingContextAccessor();

            if (bindingContext != null)
            {
                bindingContextAccessor.ActionBindingContext = bindingContext;
            }

            return(new TestObjectResultExecutor(
                       options ?? new TestOptionsManager <MvcOptions>(),
                       bindingContextAccessor,
                       new TestHttpResponseStreamWriterFactory(),
                       NullLoggerFactory.Instance));
        }
Ejemplo n.º 2
0
        private static TestObjectResultExecutor CreateExecutor(
            IOptions<MvcOptions> options = null,
            ActionBindingContext bindingContext = null)
        {
            var bindingContextAccessor = new ActionBindingContextAccessor();
            if (bindingContext != null)
            {
                bindingContextAccessor.ActionBindingContext = bindingContext;
            }

            return new TestObjectResultExecutor(
                options ?? new TestOptionsManager<MvcOptions>(),
                bindingContextAccessor,
                new TestHttpResponseStreamWriterFactory(),
                NullLoggerFactory.Instance);
        }