public bool Equals(NakedObjectWrapper other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other.nakedObject, nakedObject)); }
public INakedObjectSurface GetDefault(INakedObjectSurface nakedObject) { return(NakedObjectWrapper.Wrap(nakedObjectActionParameter.GetDefault(((NakedObjectWrapper)nakedObject).WrappedNakedObject), Surface, framework)); }
public INakedObjectSurface[] GetCompletions(INakedObjectSurface nakedObject, string autoCompleteParm) { return(nakedObjectActionParameter.GetCompletions(((NakedObjectWrapper)nakedObject).WrappedNakedObject, autoCompleteParm).Select(no => NakedObjectWrapper.Wrap(no, Surface, framework)).Cast <INakedObjectSurface>().ToArray()); }
public INakedObjectSurface[] GetChoices(INakedObjectSurface nakedObject, IDictionary <string, INakedObjectSurface> parameterNameValues) { return(nakedObjectActionParameter.GetChoices(((NakedObjectWrapper)nakedObject).WrappedNakedObject, null).Select(no => NakedObjectWrapper.Wrap(no, Surface, framework)).Cast <INakedObjectSurface>().ToArray()); }
public bool Equals(NakedObjectWrapper other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return Equals(other.nakedObject, nakedObject); }
public INakedObjectSurface[] GetCompletions(INakedObjectSurface target, string autoCompleteParm) { var oneToOneFeature = assoc as IOneToOneFeatureSpec; return(oneToOneFeature != null?oneToOneFeature.GetCompletions(((NakedObjectWrapper)target).WrappedNakedObject, autoCompleteParm).Select(no => NakedObjectWrapper.Wrap(no, Surface, framework)).Cast <INakedObjectSurface>().ToArray() : null); }
public INakedObjectSurface[] GetChoices(INakedObjectSurface target, IDictionary <string, INakedObjectSurface> parameterNameValues) { var oneToOneFeature = assoc as IOneToOneFeatureSpec; return(oneToOneFeature != null?oneToOneFeature.GetChoices(((NakedObjectWrapper)target).WrappedNakedObject, null).Select(no => NakedObjectWrapper.Wrap(no, Surface, framework)).Cast <INakedObjectSurface>().ToArray() : null); }
public INakedObjectSurface GetNakedObject(INakedObjectSurface target) { INakedObject result = assoc.GetNakedObject(((NakedObjectWrapper)target).WrappedNakedObject); return(NakedObjectWrapper.Wrap(result, Surface, framework)); }