コード例 #1
0
        protected virtual IRejectionReasonStateMergePatched Map(IMergePatchRejectionReason c)
        {
            var stateEventId = new RejectionReasonEventId(c.RejectionReasonId, c.Version);
            IRejectionReasonStateMergePatched e = NewRejectionReasonStateMergePatched(stateEventId);

            e.Description = c.Description;
            e.Active      = c.Active;
            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);
        }
コード例 #2
0
 public virtual void When(IMergePatchRejectionReason c)
 {
     Update(c, ar => ar.MergePatch(c));
 }
コード例 #3
0
        public virtual void MergePatch(IMergePatchRejectionReason c)
        {
            IRejectionReasonStateMergePatched e = Map(c);

            Apply(e);
        }
コード例 #4
0
 void IRejectionReasonApplicationService.When(IMergePatchRejectionReason c)
 {
     this.When((MergePatchRejectionReasonDto)c);
 }