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));
        }
Beispiel #2
0
        public virtual string GetObjectActionOrder()
        {
            ITypeSpec spec = NakedObject.Spec;

            IActionSpec[] actionsSpec = spec.GetActions();
            var           order       = new StringBuilder();

            order.Append(AppendActions(actionsSpec));
            return(order.ToString());
        }
Beispiel #3
0
 public static IActionSpec[] GetActionLeafNodes(this ITypeSpec spec)
 {
     return(spec.GetActions().SelectMany(GetActionLeafNodes).ToArray());
 }