Exemplo n.º 1
0
        protected virtual IUserLoginMvoStateCreated Map(ICreateUserLoginMvo c)
        {
            var stateEventId            = new UserLoginMvoStateEventId(c.UserLoginId, c.UserVersion);
            IUserLoginMvoStateCreated e = NewUserLoginMvoStateCreated(stateEventId);

            e.Version                  = c.Version;
            e.Active                   = c.Active;
            e.UserUserName             = c.UserUserName;
            e.UserAccessFailedCount    = c.UserAccessFailedCount;
            e.UserEmail                = c.UserEmail;
            e.UserEmailConfirmed       = c.UserEmailConfirmed;
            e.UserLockoutEnabled       = c.UserLockoutEnabled;
            e.UserLockoutEndDateUtc    = c.UserLockoutEndDateUtc;
            e.UserPasswordHash         = c.UserPasswordHash;
            e.UserPhoneNumber          = c.UserPhoneNumber;
            e.UserPhoneNumberConfirmed = c.UserPhoneNumberConfirmed;
            e.UserTwoFactorEnabled     = c.UserTwoFactorEnabled;
            e.UserSecurityStamp        = c.UserSecurityStamp;
            e.UserCreatedBy            = c.UserCreatedBy;
            e.UserCreatedAt            = c.UserCreatedAt;
            e.UserUpdatedBy            = c.UserUpdatedBy;
            e.UserUpdatedAt            = c.UserUpdatedAt;
            e.UserActive               = c.UserActive;
            e.UserDeleted              = c.UserDeleted;
            ReflectUtils.CopyPropertyValue("CommandId", c, e);


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


            return(e);
        }
Exemplo n.º 2
0
        protected UserLoginMvoStateDeleted NewUserLoginMvoStateDeleted(string commandId, string requesterId)
        {
            var stateEventId = new UserLoginMvoStateEventId(_state.UserLoginId, ((IUserLoginMvoStateProperties)_state).UserVersion);
            var e            = NewUserLoginMvoStateDeleted(stateEventId);

            e.CommandId = commandId;

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

            return(e);
        }
Exemplo n.º 3
0
        protected virtual IUserLoginMvoStateDeleted Map(IDeleteUserLoginMvo c)
        {
            var stateEventId            = new UserLoginMvoStateEventId(c.UserLoginId, c.UserVersion);
            IUserLoginMvoStateDeleted e = NewUserLoginMvoStateDeleted(stateEventId);

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


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


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

            UserLoginMvoStateEventId other = obj as UserLoginMvoStateEventId;

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

            return(true &&
                   Object.Equals(this.UserLoginId, other.UserLoginId) &&
                   Object.Equals(this.UserVersion, other.UserVersion)
                   );
        }
Exemplo n.º 5
0
 private UserLoginMvoStateDeleted NewUserLoginMvoStateDeleted(UserLoginMvoStateEventId stateEventId)
 {
     return(new UserLoginMvoStateDeleted(stateEventId));
 }
Exemplo n.º 6
0
 private UserLoginMvoStateMergePatched NewUserLoginMvoStateMergePatched(UserLoginMvoStateEventId stateEventId)
 {
     return(new UserLoginMvoStateMergePatched(stateEventId));
 }
Exemplo n.º 7
0
 public UserLoginMvoStateDeleted(UserLoginMvoStateEventId stateEventId) : base(stateEventId)
 {
 }
Exemplo n.º 8
0
 public UserLoginMvoStateMergePatched(UserLoginMvoStateEventId stateEventId) : base(stateEventId)
 {
 }
Exemplo n.º 9
0
 protected UserLoginMvoStateEventBase(UserLoginMvoStateEventId stateEventId)
 {
     this.StateEventId = stateEventId;
 }
Exemplo n.º 10
0
 public UserLoginMvoStateEventIdDto(UserLoginMvoStateEventId val)
 {
     this._value = val;
 }