public void Init()
        {
            _viewFolder = new InMemoryViewFolder();

            _factory = new StubViewFactory
            {
                Engine = new SparkViewEngine(
                    new SparkSettings()
                        .SetPageBaseType(typeof(StubSparkView)))
                {
                    ViewFolder = _viewFolder
                }
            };
        }
示例#2
0
 public void Init()
 {
     CompiledViewHolder.Current = new CompiledViewHolder();
     _viewFolder = new InMemoryViewFolder();
     _factory = new StubViewFactory
     {
         Engine = new SparkViewEngine(
             new SparkSettings()
                 .SetDefaultLanguage(LanguageType.VisualBasic)
                 .SetPageBaseType(typeof(StubSparkView)))
         {
             ViewFolder = _viewFolder
         }
     };
 }
        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();
        }
示例#4
0
 public void Init()
 {
     CompiledViewHolder.Current = new CompiledViewHolder();
     _viewFolder = new InMemoryViewFolder();
     _cacheService = new StubCacheService();
     _factory = new StubViewFactory
     {
         Engine = new SparkViewEngine(
             new SparkSettings()
                 .SetPageBaseType(typeof(StubSparkView)))
         {
             ViewFolder = _viewFolder
         },
         CacheService = _cacheService
     };
 }