Beispiel #1
0
        protected virtual IShipmentMethodTypeStateCreated Map(ICreateShipmentMethodType c)
        {
            var stateEventId = new ShipmentMethodTypeEventId(c.ShipmentMethodTypeId, c.Version);
            IShipmentMethodTypeStateCreated e = NewShipmentMethodTypeStateCreated(stateEventId);

            e.Description = c.Description;
            e.SequenceNum = c.SequenceNum;
            e.Active      = c.Active;
            e.CommandId   = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();
            var version = c.Version;


            return(e);
        }
Beispiel #2
0
 void IShipmentMethodTypeApplicationService.When(ICreateShipmentMethodType c)
 {
     this.When((CreateShipmentMethodTypeDto)c);
 }
Beispiel #3
0
        public virtual void Create(ICreateShipmentMethodType c)
        {
            IShipmentMethodTypeStateCreated e = Map(c);

            Apply(e);
        }
 public virtual void When(ICreateShipmentMethodType c)
 {
     Update(c, ar => ar.Create(c));
 }