public virtual void When(IMovementConfirmationLineMvoStateDeleted e) { ThrowOnWrongEvent(e); this.Deleted = true; this.UpdatedBy = e.CreatedBy; this.UpdatedAt = e.CreatedAt; }
protected virtual IMovementConfirmationLineMvoStateDeleted Map(IDeleteMovementConfirmationLineMvo c) { var stateEventId = new MovementConfirmationLineMvoEventId(c.MovementConfirmationLineId, c.MovementConfirmationVersion); IMovementConfirmationLineMvoStateDeleted e = NewMovementConfirmationLineMvoStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
public virtual void Delete(IDeleteMovementConfirmationLineMvo c) { IMovementConfirmationLineMvoStateDeleted e = Map(c); Apply(e); }
void IMovementConfirmationLineMvoState.When(IMovementConfirmationLineMvoStateDeleted e) { throw new NotSupportedException(); }
public virtual MovementConfirmationLineMvoStateDeletedDto ToMovementConfirmationLineMvoStateDeletedDto(IMovementConfirmationLineMvoStateDeleted e) { var dto = new MovementConfirmationLineMvoStateDeletedDto(); dto.MovementConfirmationLineMvoEventId = e.MovementConfirmationLineMvoEventId; dto.CreatedAt = e.CreatedAt; dto.CreatedBy = e.CreatedBy; dto.CommandId = e.CommandId; return(dto); }
public void AddMovementConfirmationLineMvoEvent(IMovementConfirmationLineMvoStateDeleted e) { _innerStateEvents.Add((MovementConfirmationLineMvoStateDeletedDto)e); }