Exemplo n.º 1
0
        protected virtual IShipmentPackageContentStateCreated MapCreate(ICreateShipmentPackageContent c, IShipmentPackageCommand outerCommand, long version, IShipmentPackageState outerState)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId = new ShipmentPackageContentEventId(c.ShipmentPackageId, c.ShipmentItemSeqId, version);
            IShipmentPackageContentStateCreated e = NewShipmentPackageContentStateCreated(stateEventId);
            var s = outerState.ShipmentPackageContents.Get(c.ShipmentItemSeqId, true);

            e.Quantity           = c.Quantity;
            e.SubProductId       = c.SubProductId;
            e.SubProductQuantity = c.SubProductQuantity;
            e.Active             = c.Active;

            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();
            return(e);
        }// END Map(ICreate... ////////////////////////////
Exemplo n.º 2
0
 void ICreateShipmentPackageContentCommands.Remove(ICreateShipmentPackageContent c)
 {
     _innerCommands.Remove((CreateShipmentPackageContentDto)c);
 }
Exemplo n.º 3
0
 public void Remove(ICreateShipmentPackageContent c)
 {
     _innerCommands.Remove(c);
 }
Exemplo n.º 4
0
 public void Add(ICreateShipmentPackageContent c)
 {
     _innerCommands.Add(c);
 }