Ejemplo n.º 1
0
        public virtual OrderItemShipGroupAssociationStateRemovedDto NewOrderItemShipGroupAssociationStateRemoved(string orderItemSeqId)
        {
            var e   = new OrderItemShipGroupAssociationStateRemovedDto();
            var eId = NewOrderItemShipGroupAssociationEventId(orderItemSeqId);

            e.OrderItemShipGroupAssociationEventId = eId;
            return(e);
        }
Ejemplo n.º 2
0
        public virtual OrderItemShipGroupAssociationStateRemovedDto ToOrderItemShipGroupAssociationStateRemovedDto(IOrderItemShipGroupAssociationStateRemoved e)
        {
            var dto = new OrderItemShipGroupAssociationStateRemovedDto();

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

            return(dto);
        }
Ejemplo n.º 3
0
        public virtual OrderShipGroupStateRemovedDto ToOrderShipGroupStateRemovedDto(IOrderShipGroupStateRemoved e)
        {
            var dto = new OrderShipGroupStateRemovedDto();

            dto.OrderShipGroupEventId = e.OrderShipGroupEventId;
            dto.CreatedAt             = e.CreatedAt;
            dto.CreatedBy             = e.CreatedBy;
            dto.Version   = e.Version;
            dto.CommandId = e.CommandId;
            var orderItemShipGroupAssociationEvents = new List <OrderItemShipGroupAssociationStateRemovedDto>();

            foreach (var ee in e.OrderItemShipGroupAssociationEvents)
            {
                OrderItemShipGroupAssociationStateRemovedDto eeDto = OrderItemShipGroupAssociationStateEventDtoConverter.ToOrderItemShipGroupAssociationStateRemovedDto(ee);
                orderItemShipGroupAssociationEvents.Add(eeDto);
            }
            dto.OrderItemShipGroupAssociationEvents = orderItemShipGroupAssociationEvents.ToArray();


            return(dto);
        }