예제 #1
0
        protected virtual IMovementConfirmationStateDeleted Map(IDeleteMovementConfirmation c)
        {
            var stateEventId = new MovementConfirmationEventId(c.DocumentNumber, c.Version);
            IMovementConfirmationStateDeleted e = NewMovementConfirmationStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


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


            return(e);
        }
예제 #2
0
        public virtual void Delete(IDeleteMovementConfirmation c)
        {
            IMovementConfirmationStateDeleted e = Map(c);

            Apply(e);
        }
 void IMovementConfirmationApplicationService.When(IDeleteMovementConfirmation c)
 {
     this.When((DeleteMovementConfirmationDto)c);
 }
예제 #4
0
 public virtual void When(IDeleteMovementConfirmation c)
 {
     Update(c, ar => ar.Delete(c));
 }