protected virtual IMovementConfirmationLineStateCreated MapCreate(ICreateMovementConfirmationLine c, IMovementConfirmationCommand outerCommand, long version, IMovementConfirmationState outerState) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new MovementConfirmationLineEventId(c.MovementConfirmationDocumentNumber, c.LineNumber, version); IMovementConfirmationLineStateCreated e = NewMovementConfirmationLineStateCreated(stateEventId); var s = outerState.MovementConfirmationLines.Get(c.LineNumber, true); e.MovementLineNumber = c.MovementLineNumber; e.TargetQuantity = c.TargetQuantity; e.ConfirmedQuantity = c.ConfirmedQuantity; e.DifferenceQuantity = c.DifferenceQuantity; e.ScrappedQuantity = c.ScrappedQuantity; e.Description = c.Description; e.Processed = c.Processed; e.Active = c.Active; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }// END Map(ICreate... ////////////////////////////
public void Remove(ICreateMovementConfirmationLine c) { _innerCommands.Remove(c); }
public void Add(ICreateMovementConfirmationLine c) { _innerCommands.Add(c); }
void ICreateMovementConfirmationLineCommands.Remove(ICreateMovementConfirmationLine c) { _innerCommands.Remove((CreateMovementConfirmationLineDto)c); }