コード例 #1
0
        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... ////////////////////////////
コード例 #2
0
 public void Remove(ICreateSellableInventoryItemEntry c)
 {
     _innerCommands.Remove(c);
 }
コード例 #3
0
 void ICreateSellableInventoryItemEntryCommands.Remove(ICreateSellableInventoryItemEntry c)
 {
     _innerCommands.Remove((CreateSellableInventoryItemEntryDto)c);
 }
コード例 #4
0
 public void Add(ICreateSellableInventoryItemEntry c)
 {
     _innerCommands.Add(c);
 }