Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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)
                   );
        }
Example #5
0
 private OrganizationStructureStateDeleted NewOrganizationStructureStateDeleted(OrganizationStructureStateEventId stateEventId)
 {
     return(new OrganizationStructureStateDeleted(stateEventId));
 }
Example #6
0
 private OrganizationStructureStateMergePatched NewOrganizationStructureStateMergePatched(OrganizationStructureStateEventId stateEventId)
 {
     return(new OrganizationStructureStateMergePatched(stateEventId));
 }
 public OrganizationStructureStateEventIdDto(OrganizationStructureStateEventId val)
 {
     this._value = val;
 }
Example #8
0
 public OrganizationStructureStateCreated(OrganizationStructureStateEventId stateEventId) : base(stateEventId)
 {
 }
Example #9
0
 protected OrganizationStructureStateEventBase(OrganizationStructureStateEventId stateEventId)
 {
     this.StateEventId = stateEventId;
 }
Example #10
0
 public OrganizationStructureStateMergePatched(OrganizationStructureStateEventId stateEventId) : base(stateEventId)
 {
 }