public virtual void When(IOrderItemShipGroupAssociationStateRemoved e)
        {
            ThrowOnWrongEvent(e);

            this.Deleted   = true;
            this.UpdatedBy = e.CreatedBy;
            this.UpdatedAt = e.CreatedAt;
        }
예제 #2
0
        }// END Map(IMergePatch... ////////////////////////////

        protected virtual IOrderItemShipGroupAssociationStateRemoved MapRemove(IRemoveOrderItemShipGroupAssociation c, IOrderShipGroupCommand outerCommand, long version)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId = new OrderItemShipGroupAssociationEventId(c.OrderId, c.OrderShipGroupShipGroupSeqId, c.OrderItemSeqId, version);
            IOrderItemShipGroupAssociationStateRemoved e = NewOrderItemShipGroupAssociationStateRemoved(stateEventId);


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();

            return(e);
        }// END Map(IRemove... ////////////////////////////
예제 #3
0
 public virtual void AddOrderItemShipGroupAssociationEvent(IOrderItemShipGroupAssociationStateRemoved e)
 {
     ThrowOnInconsistentEventIds(e);
     this._orderItemShipGroupAssociationEvents[e.OrderItemShipGroupAssociationEventId] = e;
 }
예제 #4
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);
        }
예제 #5
0
 void IOrderShipGroupStateRemoved.AddOrderItemShipGroupAssociationEvent(IOrderItemShipGroupAssociationStateRemoved e)
 {
     this._orderItemShipGroupAssociationEvents.AddOrderItemShipGroupAssociationEvent(e);
 }
예제 #6
0
 public void AddOrderItemShipGroupAssociationEvent(IOrderItemShipGroupAssociationStateRemoved e)
 {
     _innerStateEvents.Add((OrderItemShipGroupAssociationStateRemovedDto)e);
 }
 void IOrderItemShipGroupAssociationState.When(IOrderItemShipGroupAssociationStateRemoved e)
 {
     throw new NotSupportedException();
 }