public void SetupFixture()
		{
			AspViewEngineOptions options = new AspViewEngineOptions(new AspViewCompilerOptions());
			engine = new AspViewEngine();
			//engine.Initialize(options);
			engineWithTestAccess = engine;
		}
Beispiel #2
0
        public void SetupFixture()
        {
            AspViewEngineOptions options = new AspViewEngineOptions(new AspViewCompilerOptions());

            engine = new AspViewEngine();
            //engine.Initialize(options);
            engineWithTestAccess = engine;
        }
		public void SetUp()
		{
			var testInstance = new MyApplication();
			oldApplicationInstanceGetter = AspViewEngine.GetApplicationInstance;
			AspViewEngine.GetApplicationInstance = () => testInstance;
			var basePath = Environment.CurrentDirectory;
			engine = new AspViewEngine();
			engineWithTestAccess = engine;			

			engineWithTestAccess.SetViewSourceLoader(new StubViewSourceLoader());
			engineWithTestAccess.SetCompilationContext(
				new List<ICompilationContext>
					{
						new CompilationContext(
							new DirectoryInfo(basePath),
							new DirectoryInfo(basePath),
							new DirectoryInfo(basePath),
							new DirectoryInfo(basePath))
					});
		}
Beispiel #4
0
        public void SetUp()
        {
            var testInstance = new MyApplication();

            oldApplicationInstanceGetter         = AspViewEngine.GetApplicationInstance;
            AspViewEngine.GetApplicationInstance = () => testInstance;
            var basePath = Environment.CurrentDirectory;

            engine = new AspViewEngine();
            engineWithTestAccess = engine;

            engineWithTestAccess.SetViewSourceLoader(new StubViewSourceLoader());
            engineWithTestAccess.SetCompilationContext(
                new List <ICompilationContext>
            {
                new CompilationContext(
                    new DirectoryInfo(basePath),
                    new DirectoryInfo(basePath),
                    new DirectoryInfo(basePath),
                    new DirectoryInfo(basePath))
            });
        }