public virtual MovementConfirmationLineStateRemovedDto NewMovementConfirmationLineStateRemoved(string lineNumber)
        {
            var e   = new MovementConfirmationLineStateRemovedDto();
            var eId = NewMovementConfirmationLineEventId(lineNumber);

            e.MovementConfirmationLineEventId = eId;
            return(e);
        }
        public virtual MovementConfirmationLineStateRemovedDto ToMovementConfirmationLineStateRemovedDto(IMovementConfirmationLineStateRemoved e)
        {
            var dto = new MovementConfirmationLineStateRemovedDto();

            dto.MovementConfirmationLineEventId = e.MovementConfirmationLineEventId;
            dto.CreatedAt = e.CreatedAt;
            dto.CreatedBy = e.CreatedBy;
            dto.Version   = e.Version;
            dto.CommandId = e.CommandId;

            return(dto);
        }
        public virtual MovementConfirmationStateDeletedDto ToMovementConfirmationStateDeletedDto(IMovementConfirmationStateDeleted e)
        {
            var dto = new MovementConfirmationStateDeletedDto();

            dto.MovementConfirmationEventId = e.MovementConfirmationEventId;
            dto.CreatedAt = e.CreatedAt;
            dto.CreatedBy = e.CreatedBy;
            dto.CommandId = e.CommandId;
            var movementConfirmationLineEvents = new List <MovementConfirmationLineStateRemovedDto>();

            foreach (var ee in e.MovementConfirmationLineEvents)
            {
                MovementConfirmationLineStateRemovedDto eeDto = MovementConfirmationLineStateEventDtoConverter.ToMovementConfirmationLineStateRemovedDto(ee);
                movementConfirmationLineEvents.Add(eeDto);
            }
            dto.MovementConfirmationLineEvents = movementConfirmationLineEvents.ToArray();


            return(dto);
        }