Beispiel #1
0
        protected OrganizationStructureTypeStateDeleted NewOrganizationStructureTypeStateDeleted(long version, string commandId, string requesterId)
        {
            var stateEventId = new OrganizationStructureTypeEventId(_state.Id, version);
            var e            = NewOrganizationStructureTypeStateDeleted(stateEventId);

            e.CommandId = commandId;

            e.CreatedBy = (string)requesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();

            return(e);
        }
Beispiel #2
0
        protected virtual IOrganizationStructureTypeStateDeleted Map(IDeleteOrganizationStructureType c)
        {
            var stateEventId = new OrganizationStructureTypeEventId(c.Id, c.Version);
            IOrganizationStructureTypeStateDeleted e = NewOrganizationStructureTypeStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();


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

            OrganizationStructureTypeEventId other = obj as OrganizationStructureTypeEventId;

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

            return(true &&
                   Object.Equals(this.Id, other.Id) &&
                   Object.Equals(this.Version, other.Version)
                   );
        }
Beispiel #4
0
        protected virtual IOrganizationStructureTypeStateMergePatched Map(IMergePatchOrganizationStructureType c)
        {
            var stateEventId = new OrganizationStructureTypeEventId(c.Id, c.Version);
            IOrganizationStructureTypeStateMergePatched e = NewOrganizationStructureTypeStateMergePatched(stateEventId);

            e.Description = c.Description;
            e.Active      = c.Active;
            e.IsPropertyDescriptionRemoved = c.IsPropertyDescriptionRemoved;
            e.IsPropertyActiveRemoved      = c.IsPropertyActiveRemoved;

            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();

            var version = c.Version;


            return(e);
        }
Beispiel #5
0
 protected OrganizationStructureTypeStateEventDtoBase(OrganizationStructureTypeEventId stateEventId)
 {
     this.OrganizationStructureTypeEventId = stateEventId;
 }
 public OrganizationStructureTypeStateDeleted(OrganizationStructureTypeEventId stateEventId) : base(stateEventId)
 {
 }
 public OrganizationStructureTypeStateMergePatched(OrganizationStructureTypeEventId stateEventId) : base(stateEventId)
 {
 }
 protected OrganizationStructureTypeStateEventBase(OrganizationStructureTypeEventId stateEventId) : base(stateEventId)
 {
 }
Beispiel #9
0
 private OrganizationStructureTypeStateDeleted NewOrganizationStructureTypeStateDeleted(OrganizationStructureTypeEventId stateEventId)
 {
     return(new OrganizationStructureTypeStateDeleted(stateEventId));
 }
Beispiel #10
0
 private OrganizationStructureTypeStateMergePatched NewOrganizationStructureTypeStateMergePatched(OrganizationStructureTypeEventId stateEventId)
 {
     return(new OrganizationStructureTypeStateMergePatched(stateEventId));
 }