public MenuActionFacade(IMenuActionImmutable wrapped, IFrameworkFacade facade, INakedObjectsFramework framework) {
     Wrapped = wrapped;
     Name = wrapped.Name;
     Id = wrapped.Id;
     var action = framework.MetamodelManager.GetActionSpec(wrapped.Action);
     Action = new ActionFacade(action, facade, framework, "");
 }
        public MenuActionFacade(IMenuActionImmutable wrapped, IFrameworkFacade facade, INakedObjectsFramework framework)
        {
            Wrapped = wrapped;
            Name    = wrapped.Name;
            Id      = wrapped.Id;
            var action = framework.MetamodelManager.GetActionSpec(wrapped.Action);

            Action = new ActionFacade(action, facade, framework, "");
        }
Beispiel #3
0
 public bool Equals(ActionFacade other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.WrappedSpec, WrappedSpec));
 }
Beispiel #4
0
 public bool Equals(ActionFacade other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.action, action));
 }
 public bool Equals(ActionFacade other) {
     if (ReferenceEquals(null, other)) { return false; }
     if (ReferenceEquals(this, other)) { return true; }
     return Equals(other.action, action);
 }
 public bool Equals(ActionFacade other) {
     if (ReferenceEquals(null, other)) { return false; }
     if (ReferenceEquals(this, other)) { return true; }
     return Equals(other.WrappedSpec, WrappedSpec);
 }