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); }
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); }
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) ); }
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); }
private PartyRoleStateDeleted NewPartyRoleStateDeleted(PartyRoleEventId stateEventId) { return(new PartyRoleStateDeleted(stateEventId)); }
private PartyRoleStateMergePatched NewPartyRoleStateMergePatched(PartyRoleEventId stateEventId) { return(new PartyRoleStateMergePatched(stateEventId)); }
protected PartyRoleEventBase(PartyRoleEventId stateEventId) { this.PartyRoleEventId = stateEventId; }
public PartyRoleStateDeleted(PartyRoleEventId stateEventId) : base(stateEventId) { }
public PartyRoleStateMergePatched(PartyRoleEventId stateEventId) : base(stateEventId) { }
protected PartyRoleStateEventBase(PartyRoleEventId stateEventId) : base(stateEventId) { }