Example #1
0
        protected virtual IStatusItemStateMergePatched Map(IMergePatchStatusItem c)
        {
            var stateEventId = new StatusItemEventId(c.StatusId, c.Version);
            IStatusItemStateMergePatched e = NewStatusItemStateMergePatched(stateEventId);

            e.StatusTypeId = c.StatusTypeId;
            e.StatusCode   = c.StatusCode;
            e.SequenceId   = c.SequenceId;
            e.Description  = c.Description;
            e.Active       = c.Active;
            e.IsPropertyStatusTypeIdRemoved = c.IsPropertyStatusTypeIdRemoved;
            e.IsPropertyStatusCodeRemoved   = c.IsPropertyStatusCodeRemoved;
            e.IsPropertySequenceIdRemoved   = c.IsPropertySequenceIdRemoved;
            e.IsPropertyDescriptionRemoved  = c.IsPropertyDescriptionRemoved;
            e.IsPropertyActiveRemoved       = c.IsPropertyActiveRemoved;

            e.CommandId = c.CommandId;


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

            var version = c.Version;


            return(e);
        }
 void IStatusItemApplicationService.When(IMergePatchStatusItem c)
 {
     this.When((MergePatchStatusItemDto)c);
 }
 public virtual void When(IMergePatchStatusItem c)
 {
     Update(c, ar => ar.MergePatch(c));
 }
Example #4
0
        public virtual void MergePatch(IMergePatchStatusItem c)
        {
            IStatusItemStateMergePatched e = Map(c);

            Apply(e);
        }