public static IActionSpec GetActionFromId(this INakedObjectsFramework framework, string actionId) { string[] asArray = actionId.Split(';'); ITypeSpec spec = framework.MetamodelManager.GetSpecification(asArray.First()); string id = asArray.Skip(1).First(); return(spec.GetActions().Single(a => a.Id == id)); }
public virtual string GetObjectActionOrder() { ITypeSpec spec = NakedObject.Spec; IActionSpec[] actionsSpec = spec.GetActions(); var order = new StringBuilder(); order.Append(AppendActions(actionsSpec)); return(order.ToString()); }
public static IActionSpec[] GetActionLeafNodes(this ITypeSpec spec) { return(spec.GetActions().SelectMany(GetActionLeafNodes).ToArray()); }