private ShipmentItemEventId NewShipmentItemEventId(string shipmentItemSeqId) { var eId = new ShipmentItemEventId(); eId.ShipmentId = this.ShipmentEventId.ShipmentId; eId.ShipmentItemSeqId = shipmentItemSeqId; eId.ShipmentVersion = this.ShipmentEventId.Version; return(eId); }
protected virtual IShipmentItemStateCreated MapCreate(ICreateShipmentItem c, IShipmentCommand outerCommand, long version, IShipmentState outerState) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new ShipmentItemEventId(c.ShipmentId, c.ShipmentItemSeqId, version); IShipmentItemStateCreated e = NewShipmentItemStateCreated(stateEventId); var s = outerState.ShipmentItems.Get(c.ShipmentItemSeqId, true); e.ProductId = c.ProductId; e.AttributeSetInstanceId = c.AttributeSetInstanceId; e.Quantity = c.Quantity; e.ShipmentContentDescription = c.ShipmentContentDescription; e.Active = c.Active; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }// END Map(ICreate... ////////////////////////////
public override bool Equals(object obj) { if (Object.ReferenceEquals(this, obj)) { return(true); } ShipmentItemEventId other = obj as ShipmentItemEventId; if (other == null) { return(false); } return(true && Object.Equals(this.ShipmentId, other.ShipmentId) && Object.Equals(this.ShipmentItemSeqId, other.ShipmentItemSeqId) && Object.Equals(this.ShipmentVersion, other.ShipmentVersion) ); }
protected ShipmentItemStateEventDtoBase(ShipmentItemEventId stateEventId) { this.ShipmentItemEventId = stateEventId; }
private ShipmentItemStateMergePatched NewShipmentItemStateMergePatched(ShipmentItemEventId stateEventId) { return(new ShipmentItemStateMergePatched(stateEventId)); }
private ShipmentItemStateCreated NewShipmentItemStateCreated(ShipmentItemEventId stateEventId) { return(new ShipmentItemStateCreated(stateEventId)); }
protected ShipmentItemEventId NewShipmentItemEventId(string shipmentItemSeqId) { var stateEventId = new ShipmentItemEventId(this.ShipmentEventId.ShipmentId, shipmentItemSeqId, this.ShipmentEventId.Version); return(stateEventId); }
public ShipmentItemStateMergePatched(ShipmentItemEventId stateEventId) : base(stateEventId) { }
public ShipmentItemStateCreated(ShipmentItemEventId stateEventId) : base(stateEventId) { }
protected ShipmentItemStateEventBase(ShipmentItemEventId stateEventId) : base(stateEventId) { }