示例#1
0
 public void Init()
 {
     _viewFolder = new InMemoryViewFolder();
     _factory    = new StubViewFactory
     {
         Engine = new SparkViewEngine(
             new SparkSettings()
             .SetDefaultLanguage(LanguageType.VisualBasic)
             .SetPageBaseType(typeof(StubSparkView)))
         {
             ViewFolder = _viewFolder
         }
     };
 }
示例#2
0
 public void Init()
 {
     _viewFolder   = new InMemoryViewFolder();
     _cacheService = new StubCacheService();
     _factory      = new StubViewFactory
     {
         Engine = new SparkViewEngine(
             new SparkSettings()
             .SetPageBaseType(typeof(StubSparkView)))
         {
             ViewFolder = _viewFolder
         },
         CacheService = _cacheService
     };
 }
示例#3
0
        public void Init()
        {
            settings = new SparkSettings().SetPageBaseType("Spark.Tests.Stubs.StubSparkView");
            engine   = new SparkViewEngine(settings)
            {
                ViewFolder = new FileSystemViewFolder("Spark.Tests.Views")
            };
            factory = new StubViewFactory {
                Engine = engine
            };

            sb = new StringBuilder();


            mocks = new MockRepository();
        }