예제 #1
0
        protected PartyRoleStateDeleted NewPartyRoleStateDeleted(long version, string commandId, string requesterId)
        {
            var stateEventId = new PartyRoleEventId(_state.PartyRoleId, version);
            var e            = NewPartyRoleStateDeleted(stateEventId);

            e.CommandId = commandId;

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

            return(e);
        }
예제 #2
0
        protected virtual IPartyRoleStateDeleted Map(IDeletePartyRole c)
        {
            var stateEventId         = new PartyRoleEventId(c.PartyRoleId, c.Version);
            IPartyRoleStateDeleted e = NewPartyRoleStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


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


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

            PartyRoleEventId other = obj as PartyRoleEventId;

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

            return(true &&
                   Object.Equals(this.PartyRoleId, other.PartyRoleId) &&
                   Object.Equals(this.Version, other.Version)
                   );
        }
예제 #4
0
        protected virtual IPartyRoleStateMergePatched Map(IMergePatchPartyRole c)
        {
            var stateEventId = new PartyRoleEventId(c.PartyRoleId, c.Version);
            IPartyRoleStateMergePatched e = NewPartyRoleStateMergePatched(stateEventId);

            e.Active = c.Active;
            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);
        }
예제 #5
0
 private PartyRoleStateDeleted NewPartyRoleStateDeleted(PartyRoleEventId stateEventId)
 {
     return(new PartyRoleStateDeleted(stateEventId));
 }
예제 #6
0
 private PartyRoleStateMergePatched NewPartyRoleStateMergePatched(PartyRoleEventId stateEventId)
 {
     return(new PartyRoleStateMergePatched(stateEventId));
 }
예제 #7
0
 protected PartyRoleEventBase(PartyRoleEventId stateEventId)
 {
     this.PartyRoleEventId = stateEventId;
 }
예제 #8
0
 public PartyRoleStateDeleted(PartyRoleEventId stateEventId) : base(stateEventId)
 {
 }
예제 #9
0
 public PartyRoleStateMergePatched(PartyRoleEventId stateEventId) : base(stateEventId)
 {
 }
예제 #10
0
 protected PartyRoleStateEventBase(PartyRoleEventId stateEventId) : base(stateEventId)
 {
 }