コード例 #1
0
        public void SetupContext()
        {
            _context = AssmanContext.Create(ResourceMode.Debug);
            _groupElement = new ScriptGroupElement();
            _groupElement.ConsolidatedUrl = "~" + ConsolidatedPath;
            _context.ScriptGroups.Add(_groupElement);

            _configLoader = new Mock<IConfigLoader>();
            _configLoader.Setup(l => l.GetSection<CompilationSection>(It.IsAny<string>())).Returns(new CompilationSection());

            _handlerFactory = new ResourceHttpHandlerFactory(_context, _configLoader.Object);
        }
コード例 #2
0
        public void SetupContext()
        {
            _context      = AssmanContext.Create(ResourceMode.Debug);
            _groupElement = new ScriptGroupElement();
            _groupElement.ConsolidatedUrl = "~" + ConsolidatedPath;
            _context.ScriptGroups.Add(_groupElement);

            _configLoader = new Mock <IConfigLoader>();
            _configLoader.Setup(l => l.GetSection <CompilationSection>(It.IsAny <string>())).Returns(new CompilationSection());

            _handlerFactory = new ResourceHttpHandlerFactory(_context, _configLoader.Object);
        }