protected virtual IShipmentImageStateCreated MapCreate(ICreateShipmentImage c, IShipmentCommand outerCommand, long version, IShipmentState outerState) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new ShipmentImageEventId(c.ShipmentId, c.SequenceId, version); IShipmentImageStateCreated e = NewShipmentImageStateCreated(stateEventId); var s = outerState.ShipmentImages.Get(c.SequenceId, true); e.Url = c.Url; e.Active = c.Active; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }// END Map(ICreate... ////////////////////////////
public void Remove(ICreateShipmentImage c) { _innerCommands.Remove(c); }
public void Add(ICreateShipmentImage c) { _innerCommands.Add(c); }
void ICreateShipmentImageCommands.Remove(ICreateShipmentImage c) { _innerCommands.Remove((CreateShipmentImageDto)c); }
void ICreateShipmentImageCommands.Add(ICreateShipmentImage c) { _innerCommands.Add((CreateShipmentImageDto)c); }