Ejemplo n.º 1
0
        protected OrganizationStructureStateDeleted NewOrganizationStructureStateDeleted(string commandId, string requesterId)
        {
            var stateEventId = new OrganizationStructureStateEventId(_state.Id, ((IOrganizationStructureStateProperties)_state).Version);
            var e            = NewOrganizationStructureStateDeleted(stateEventId);

            e.CommandId = commandId;

            e.CreatedBy = (string)requesterId;
            e.CreatedAt = DateTime.Now;

            return(e);
        }
Ejemplo n.º 2
0
        protected virtual IOrganizationStructureStateDeleted Map(IDeleteOrganizationStructure c)
        {
            var stateEventId = new OrganizationStructureStateEventId(c.Id, c.Version);
            IOrganizationStructureStateDeleted e = NewOrganizationStructureStateDeleted(stateEventId);

            ReflectUtils.CopyPropertyValue("CommandId", c, e);


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;


            return(e);
        }
Ejemplo n.º 3
0
        protected virtual IOrganizationStructureStateMergePatched Map(IMergePatchOrganizationStructure c)
        {
            var stateEventId = new OrganizationStructureStateEventId(c.Id, c.Version);
            IOrganizationStructureStateMergePatched e = NewOrganizationStructureStateMergePatched(stateEventId);

            e.Active = c.Active;
            e.IsPropertyActiveRemoved = c.IsPropertyActiveRemoved;

            ReflectUtils.CopyPropertyValue("CommandId", c, e);


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;

            var version = c.Version;


            return(e);
        }
Ejemplo n.º 4
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            OrganizationStructureStateEventId other = obj as OrganizationStructureStateEventId;

            if (other == null)
            {
                return(false);
            }

            return(true &&
                   Object.Equals(this.Id, other.Id) &&
                   Object.Equals(this.Version, other.Version)
                   );
        }
Ejemplo n.º 5
0
 private OrganizationStructureStateDeleted NewOrganizationStructureStateDeleted(OrganizationStructureStateEventId stateEventId)
 {
     return(new OrganizationStructureStateDeleted(stateEventId));
 }
Ejemplo n.º 6
0
 private OrganizationStructureStateMergePatched NewOrganizationStructureStateMergePatched(OrganizationStructureStateEventId stateEventId)
 {
     return(new OrganizationStructureStateMergePatched(stateEventId));
 }
 public OrganizationStructureStateEventIdDto(OrganizationStructureStateEventId val)
 {
     this._value = val;
 }
Ejemplo n.º 8
0
 public OrganizationStructureStateCreated(OrganizationStructureStateEventId stateEventId) : base(stateEventId)
 {
 }
Ejemplo n.º 9
0
 protected OrganizationStructureStateEventBase(OrganizationStructureStateEventId stateEventId)
 {
     this.StateEventId = stateEventId;
 }
Ejemplo n.º 10
0
 public OrganizationStructureStateMergePatched(OrganizationStructureStateEventId stateEventId) : base(stateEventId)
 {
 }