protected virtual ISellableInventoryItemEntryStateCreated MapCreate(ICreateSellableInventoryItemEntry c, ISellableInventoryItemCommand outerCommand, long version, ISellableInventoryItemState outerState)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId = new SellableInventoryItemEntryEventId(c.SellableInventoryItemId, c.EntrySeqId, version);
            ISellableInventoryItemEntryStateCreated e = NewSellableInventoryItemEntryStateCreated(stateEventId);
            var s = outerState.Entries.Get(c.EntrySeqId, true);

            e.SellableQuantity = c.SellableQuantity;
            e.SourceEventId    = c.SourceEventId;

            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();
            return(e);
        }// END Map(ICreate... ////////////////////////////
 public void Remove(ICreateSellableInventoryItemEntry c)
 {
     _innerCommands.Remove(c);
 }
Example #3
0
 void ICreateSellableInventoryItemEntryCommands.Remove(ICreateSellableInventoryItemEntry c)
 {
     _innerCommands.Remove((CreateSellableInventoryItemEntryDto)c);
 }
 public void Add(ICreateSellableInventoryItemEntry c)
 {
     _innerCommands.Add(c);
 }