protected virtual IShipmentTypeStateMergePatched Map(IMergePatchShipmentType c) { var stateEventId = new ShipmentTypeEventId(c.ShipmentTypeId, c.Version); IShipmentTypeStateMergePatched e = NewShipmentTypeStateMergePatched(stateEventId); e.ParentTypeId = c.ParentTypeId; e.HasTable = c.HasTable; e.Description = c.Description; e.Active = c.Active; e.IsPropertyParentTypeIdRemoved = c.IsPropertyParentTypeIdRemoved; e.IsPropertyHasTableRemoved = c.IsPropertyHasTableRemoved; 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); }
protected ShipmentTypeStateMergePatched NewShipmentTypeStateMergePatched(long version, string commandId, string requesterId) { var stateEventId = new ShipmentTypeEventId(_state.ShipmentTypeId, version); var e = NewShipmentTypeStateMergePatched(stateEventId); e.CommandId = commandId; e.CreatedBy = (string)requesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
public override bool Equals(object obj) { if (Object.ReferenceEquals(this, obj)) { return(true); } ShipmentTypeEventId other = obj as ShipmentTypeEventId; if (other == null) { return(false); } return(true && Object.Equals(this.ShipmentTypeId, other.ShipmentTypeId) && Object.Equals(this.Version, other.Version) ); }
protected ShipmentTypeStateEventDtoBase(ShipmentTypeEventId stateEventId) { this.ShipmentTypeEventId = stateEventId; }
public ShipmentTypeStateMergePatched(ShipmentTypeEventId stateEventId) : base(stateEventId) { }
public ShipmentTypeStateCreated(ShipmentTypeEventId stateEventId) : base(stateEventId) { }
protected ShipmentTypeStateEventBase(ShipmentTypeEventId stateEventId) : base(stateEventId) { }
private ShipmentTypeStateMergePatched NewShipmentTypeStateMergePatched(ShipmentTypeEventId stateEventId) { return(new ShipmentTypeStateMergePatched(stateEventId)); }
//////////////////////// private ShipmentTypeStateCreated NewShipmentTypeStateCreated(ShipmentTypeEventId stateEventId) { return(new ShipmentTypeStateCreated(stateEventId)); }