예제 #1
0
        protected virtual IShipmentImageStateCreated MapCreate(ICreateShipmentImage c, IShipmentCommand outerCommand, long version, IShipmentState outerState)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId             = new ShipmentImageEventId(c.ShipmentId, c.SequenceId, version);
            IShipmentImageStateCreated e = NewShipmentImageStateCreated(stateEventId);
            var s = outerState.ShipmentImages.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... ////////////////////////////
예제 #2
0
 public void Remove(ICreateShipmentImage c)
 {
     _innerCommands.Remove(c);
 }
예제 #3
0
 public void Add(ICreateShipmentImage c)
 {
     _innerCommands.Add(c);
 }
예제 #4
0
 void ICreateShipmentImageCommands.Remove(ICreateShipmentImage c)
 {
     _innerCommands.Remove((CreateShipmentImageDto)c);
 }
예제 #5
0
 void ICreateShipmentImageCommands.Add(ICreateShipmentImage c)
 {
     _innerCommands.Add((CreateShipmentImageDto)c);
 }