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

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

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