Ejemplo n.º 1
0
        public virtual UserClaimStateMergePatchedDto NewUserClaimStateMergePatched(int claimId)
        {
            var e   = new UserClaimStateMergePatchedDto();
            var eId = NewUserClaimEventId(claimId);

            e.UserClaimEventId = eId;
            return(e);
        }
Ejemplo n.º 2
0
        public virtual UserClaimStateMergePatchedDto ToUserClaimStateMergePatchedDto(IUserClaimStateMergePatched e)
        {
            var dto = new UserClaimStateMergePatchedDto();

            dto.StateEventId = new UserClaimStateEventIdDtoWrapper(e.StateEventId);
            dto.CreatedAt    = e.CreatedAt;
            dto.CreatedBy    = e.CreatedBy;
            dto.Version      = e.Version;
            dto.CommandId    = e.CommandId;
            dto.ClaimType    = e.ClaimType;
            dto.ClaimValue   = e.ClaimValue;
            dto.Active       = e.Active;
            dto.IsPropertyClaimTypeRemoved  = e.IsPropertyClaimTypeRemoved;
            dto.IsPropertyClaimValueRemoved = e.IsPropertyClaimValueRemoved;
            dto.IsPropertyActiveRemoved     = e.IsPropertyActiveRemoved;

            return(dto);
        }