Exemplo n.º 1
0
        protected RolePermissionStateDeleted NewRolePermissionStateDeleted(string commandId, string requesterId)
        {
            var stateEventId = new RolePermissionStateEventId(_state.Id, ((IRolePermissionStateProperties)_state).Version);
            var e            = NewRolePermissionStateDeleted(stateEventId);

            e.CommandId = commandId;

            e.CreatedBy = (string)requesterId;
            e.CreatedAt = DateTime.Now;

            return(e);
        }
Exemplo n.º 2
0
        protected virtual IRolePermissionStateDeleted Map(IDeleteRolePermission c)
        {
            var stateEventId = new RolePermissionStateEventId(c.Id, c.Version);
            IRolePermissionStateDeleted e = NewRolePermissionStateDeleted(stateEventId);

            ReflectUtils.CopyPropertyValue("CommandId", c, e);


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;


            return(e);
        }
Exemplo n.º 3
0
        protected virtual IRolePermissionStateMergePatched Map(IMergePatchRolePermission c)
        {
            var stateEventId = new RolePermissionStateEventId(c.Id, c.Version);
            IRolePermissionStateMergePatched e = NewRolePermissionStateMergePatched(stateEventId);

            e.Active = c.Active;
            e.IsPropertyActiveRemoved = c.IsPropertyActiveRemoved;

            ReflectUtils.CopyPropertyValue("CommandId", c, e);


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;

            var version = c.Version;


            return(e);
        }
Exemplo n.º 4
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            RolePermissionStateEventId other = obj as RolePermissionStateEventId;

            if (other == null)
            {
                return(false);
            }

            return(true &&
                   Object.Equals(this.Id, other.Id) &&
                   Object.Equals(this.Version, other.Version)
                   );
        }
Exemplo n.º 5
0
 private RolePermissionStateDeleted NewRolePermissionStateDeleted(RolePermissionStateEventId stateEventId)
 {
     return(new RolePermissionStateDeleted(stateEventId));
 }
Exemplo n.º 6
0
 private RolePermissionStateMergePatched NewRolePermissionStateMergePatched(RolePermissionStateEventId stateEventId)
 {
     return(new RolePermissionStateMergePatched(stateEventId));
 }
 public RolePermissionStateEventIdFlattenedDto(RolePermissionStateEventId val)
 {
     this._value = val;
 }
Exemplo n.º 8
0
 public RolePermissionStateCreated(RolePermissionStateEventId stateEventId) : base(stateEventId)
 {
 }
Exemplo n.º 9
0
 protected RolePermissionStateEventBase(RolePermissionStateEventId stateEventId)
 {
     this.StateEventId = stateEventId;
 }
Exemplo n.º 10
0
 public RolePermissionStateMergePatched(RolePermissionStateEventId stateEventId) : base(stateEventId)
 {
 }