예제 #1
0
        protected virtual IPickwaveStateCreated Map(ICreatePickwave c)
        {
            var stateEventId        = new PickwaveEventId(c.PickwaveId, c.Version);
            IPickwaveStateCreated e = NewPickwaveStateCreated(stateEventId);

            e.StatusId    = c.StatusId;
            e.Description = c.Description;
            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);
        }
예제 #2
0
 public virtual void When(ICreatePickwave c)
 {
     Update(c, ar => ar.Create(c));
 }
 void IPickwaveApplicationService.When(ICreatePickwave c)
 {
     this.When((CreatePickwaveDto)c);
 }
예제 #4
0
        public virtual void Create(ICreatePickwave c)
        {
            IPickwaveStateCreated e = Map(c);

            Apply(e);
        }