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); }
public virtual void When(ICreatePickwave c) { Update(c, ar => ar.Create(c)); }
void IPickwaveApplicationService.When(ICreatePickwave c) { this.When((CreatePickwaveDto)c); }
public virtual void Create(ICreatePickwave c) { IPickwaveStateCreated e = Map(c); Apply(e); }