Beispiel #1
0
        public void Init()
        {
            _contentFetcher = new Mock<ISparkResourceContentFetcher>();

            var sparkJavascriptAction = new SparkJavascriptAction { ActionName = "MyAction", ViewName = "MyView", MasterName = "MyMaster"};

            _resource = new SparkResource("MyController", sparkJavascriptAction, _contentFetcher.Object);
        }
Beispiel #2
0
        public void Init()
        {
            _contentFetcher = new Mock <ISparkResourceContentFetcher>();

            var sparkJavascriptAction = new SparkJavascriptAction {
                ActionName = "MyAction", ViewName = "MyView", MasterName = "MyMaster"
            };

            _resource = new SparkResource("MyController", sparkJavascriptAction, _contentFetcher.Object);
        }