protected OrganizationStructureTypeStateDeleted NewOrganizationStructureTypeStateDeleted(string commandId, string requesterId)
        {
            var stateEventId = new OrganizationStructureTypeStateEventId(_state.Id, ((IOrganizationStructureTypeStateProperties)_state).Version);
            var e            = NewOrganizationStructureTypeStateDeleted(stateEventId);

            e.CommandId = commandId;

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

            return(e);
        }
        protected virtual IOrganizationStructureTypeStateDeleted Map(IDeleteOrganizationStructureType c)
        {
            var stateEventId = new OrganizationStructureTypeStateEventId(c.Id, c.Version);
            IOrganizationStructureTypeStateDeleted e = NewOrganizationStructureTypeStateDeleted(stateEventId);

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


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


            return(e);
        }
        protected virtual IOrganizationStructureTypeStateMergePatched Map(IMergePatchOrganizationStructureType c)
        {
            var stateEventId = new OrganizationStructureTypeStateEventId(c.Id, c.Version);
            IOrganizationStructureTypeStateMergePatched e = NewOrganizationStructureTypeStateMergePatched(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);
        }
Exemple #4
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            OrganizationStructureTypeStateEventId other = obj as OrganizationStructureTypeStateEventId;

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

            return(true &&
                   Object.Equals(this.Id, other.Id) &&
                   Object.Equals(this.Version, other.Version)
                   );
        }
Exemple #5
0
 public OrganizationStructureTypeStateCreated(OrganizationStructureTypeStateEventId stateEventId) : base(stateEventId)
 {
 }
Exemple #6
0
 protected OrganizationStructureTypeStateEventBase(OrganizationStructureTypeStateEventId stateEventId)
 {
     this.StateEventId = stateEventId;
 }
Exemple #7
0
 public OrganizationStructureTypeStateMergePatched(OrganizationStructureTypeStateEventId stateEventId) : base(stateEventId)
 {
 }
 private OrganizationStructureTypeStateDeleted NewOrganizationStructureTypeStateDeleted(OrganizationStructureTypeStateEventId stateEventId)
 {
     return(new OrganizationStructureTypeStateDeleted(stateEventId));
 }
 private OrganizationStructureTypeStateMergePatched NewOrganizationStructureTypeStateMergePatched(OrganizationStructureTypeStateEventId stateEventId)
 {
     return(new OrganizationStructureTypeStateMergePatched(stateEventId));
 }
 public OrganizationStructureTypeStateEventIdFlattenedDto(OrganizationStructureTypeStateEventId val)
 {
     this._value = val;
 }