public SparkResource(string controllerName, SparkJavascriptAction action, ISparkResourceContentFetcher contentFetcher) { _controllerName = controllerName; _action = action; _actionName = _action.ActionName; _contentFetcher = contentFetcher; _lastModified = DateTime.Now; //don't know how to determine this right now }
public void Init() { _contentFetcher = new Mock<ISparkResourceContentFetcher>(); var sparkJavascriptAction = new SparkJavascriptAction { ActionName = "MyAction", ViewName = "MyView", MasterName = "MyMaster"}; _resource = new SparkResource("MyController", sparkJavascriptAction, _contentFetcher.Object); }
public void Init() { _contentFetcher = new Mock <ISparkResourceContentFetcher>(); var sparkJavascriptAction = new SparkJavascriptAction { ActionName = "MyAction", ViewName = "MyView", MasterName = "MyMaster" }; _resource = new SparkResource("MyController", sparkJavascriptAction, _contentFetcher.Object); }
private IResource CreateResource(Type controllerType, SparkJavascriptAction action) { return(new SparkResource(controllerType.ControllerName(), action, _contentFetcher)); }