예제 #1
0
        public virtual void When(IInOutImageStateRemoved e)
        {
            ThrowOnWrongEvent(e);

            this.Deleted   = true;
            this.UpdatedBy = e.CreatedBy;
            this.UpdatedAt = e.CreatedAt;
        }
        public virtual InOutImageStateRemovedDto ToInOutImageStateRemovedDto(IInOutImageStateRemoved e)
        {
            var dto = new InOutImageStateRemovedDto();

            dto.InOutImageEventId = e.InOutImageEventId;
            dto.CreatedAt         = e.CreatedAt;
            dto.CreatedBy         = e.CreatedBy;
            dto.Version           = e.Version;
            dto.CommandId         = e.CommandId;

            return(dto);
        }
예제 #3
0
        }// END Map(IMergePatch... ////////////////////////////

        protected virtual IInOutImageStateRemoved MapRemove(IRemoveInOutImage c, IInOutCommand outerCommand, long version)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId          = new InOutImageEventId(c.InOutDocumentNumber, c.SequenceId, version);
            IInOutImageStateRemoved e = NewInOutImageStateRemoved(stateEventId);


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

            return(e);
        }// END Map(IRemove... ////////////////////////////
예제 #4
0
 void IInOutImageState.When(IInOutImageStateRemoved e)
 {
     throw new NotSupportedException();
 }
예제 #5
0
 public void AddInOutImageEvent(IInOutImageStateRemoved e)
 {
     _innerStateEvents.Add((InOutImageStateRemovedDto)e);
 }