Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }