Esempio n. 1
0
        protected virtual IOrderItemShipGroupAssociationStateCreated MapCreate(ICreateOrderItemShipGroupAssociation c, IOrderShipGroupCommand outerCommand, long version, IOrderShipGroupState outerState)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId = new OrderItemShipGroupAssociationEventId(c.OrderId, c.OrderShipGroupShipGroupSeqId, c.OrderItemSeqId, version);
            IOrderItemShipGroupAssociationStateCreated e = NewOrderItemShipGroupAssociationStateCreated(stateEventId);
            var s = outerState.OrderItemShipGroupAssociations.Get(c.OrderItemSeqId, true);

            e.Quantity       = c.Quantity;
            e.CancelQuantity = c.CancelQuantity;
            e.Active         = c.Active;

            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();
            return(e);
        }// END Map(ICreate... ////////////////////////////
Esempio n. 2
0
 public void Remove(ICreateOrderItemShipGroupAssociation c)
 {
     _innerCommands.Remove(c);
 }
Esempio n. 3
0
 public void Add(ICreateOrderItemShipGroupAssociation c)
 {
     _innerCommands.Add(c);
 }
 void ICreateOrderItemShipGroupAssociationCommands.Remove(ICreateOrderItemShipGroupAssociation c)
 {
     _innerCommands.Remove((CreateOrderItemShipGroupAssociationDto)c);
 }