Example #1
0
        protected virtual IShipmentReceiptImageStateCreated MapCreate(ICreateShipmentReceiptImage c, IShipmentReceiptCommand outerCommand, long version, IShipmentReceiptState outerState)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId = new ShipmentReceiptImageEventId(c.ShipmentId, c.ShipmentReceiptReceiptSeqId, c.SequenceId, version);
            IShipmentReceiptImageStateCreated e = NewShipmentReceiptImageStateCreated(stateEventId);
            var s = outerState.ShipmentReceiptImages.Get(c.SequenceId, true);

            e.Url    = c.Url;
            e.Active = c.Active;

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