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.GetObjectActions().Single(a => a.Id == id)); }
public virtual string GetObjectActionOrder() { ITypeSpec spec = NakedObject.Spec; IActionSpec[] actionsSpec = spec.GetObjectActions(); var order = new StringBuilder(); order.Append(AppendActions(actionsSpec)); return(order.ToString()); }
public static IActionSpec[] GetActionLeafNodes(this ITypeSpec spec) { return(spec.GetObjectActions().SelectMany(GetActionLeafNodes).ToArray()); }