public static IActionSpec GetActionLeafNode(this INakedObjectAdapter nakedObjectAdapter, string actionName) { return(nakedObjectAdapter.GetActionLeafNodes().Single(x => x.Id == actionName)); }