public virtual void When(IMovementConfirmationLineMvoStateDeleted e)
        {
            ThrowOnWrongEvent(e);

            this.Deleted   = true;
            this.UpdatedBy = e.CreatedBy;
            this.UpdatedAt = e.CreatedAt;
        }
Beispiel #2
0
        protected virtual IMovementConfirmationLineMvoStateDeleted Map(IDeleteMovementConfirmationLineMvo c)
        {
            var stateEventId = new MovementConfirmationLineMvoEventId(c.MovementConfirmationLineId, c.MovementConfirmationVersion);
            IMovementConfirmationLineMvoStateDeleted e = NewMovementConfirmationLineMvoStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


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


            return(e);
        }
Beispiel #3
0
        public virtual void Delete(IDeleteMovementConfirmationLineMvo c)
        {
            IMovementConfirmationLineMvoStateDeleted e = Map(c);

            Apply(e);
        }
 void IMovementConfirmationLineMvoState.When(IMovementConfirmationLineMvoStateDeleted e)
 {
     throw new NotSupportedException();
 }
        public virtual MovementConfirmationLineMvoStateDeletedDto ToMovementConfirmationLineMvoStateDeletedDto(IMovementConfirmationLineMvoStateDeleted e)
        {
            var dto = new MovementConfirmationLineMvoStateDeletedDto();

            dto.MovementConfirmationLineMvoEventId = e.MovementConfirmationLineMvoEventId;
            dto.CreatedAt = e.CreatedAt;
            dto.CreatedBy = e.CreatedBy;
            dto.CommandId = e.CommandId;

            return(dto);
        }
Beispiel #6
0
 public void AddMovementConfirmationLineMvoEvent(IMovementConfirmationLineMvoStateDeleted e)
 {
     _innerStateEvents.Add((MovementConfirmationLineMvoStateDeletedDto)e);
 }