internal static User CreateFromUserRegistration(UserRegistrationId userRegistrationId , string login , string password , string email , string firstName , string lastName , string name) { return(new User(userRegistrationId, login, password, email, firstName, lastName, name)); }
public SendUserRegistrationConfirmationEmailCommand( Guid id, UserRegistrationId userRegistrationId, string email, string confirmLink) : base(id) { UserRegistrationId = userRegistrationId; Email = email; ConfirmLink = confirmLink; }
public NewUserRegisteredDomainEvent( UserRegistrationId userRegistrationId, string login, string email, string firstName, string lastName, string name, DateTime registerDate) { UserRegistrationId = userRegistrationId; Login = login; Email = email; FirstName = firstName; LastName = lastName; Name = name; RegisterDate = registerDate; }
private User(UserRegistrationId userRegistrationId, string login, string password, string email, string firstName, string lastName, string name) { this.Id = new UserId(userRegistrationId.Value); _login = login; _password = password; _email = email; _firstName = firstName; _lastName = lastName; _name = name; _isActive = true; _roles = new List <UserRole>(); _roles.Add(UserRole.Member); this.AddDomainEvent(new UserCreatedDomainEvent(this.Id)); }
private User(UserRegistrationId userRegistrationId, string email, string firstName, string lastName, string login, string password) { Id = new UserId(userRegistrationId.Value); _email = email; _firstName = firstName; _lastName = lastName; _login = login; _password = password; _name = $"{firstName} {lastName}"; _isActive = true; _roles = new List <UserRole> { UserRole.Member }; AddDomainEvent(new UserCreatedDomainEvent(Id)); }
public async Task <UserRegistration> GetByIdAsync(UserRegistrationId userRegistrationId) { return(await _userAccessContext.UserRegistrations.FirstOrDefaultAsync(x => x.Id == userRegistrationId)); }
public UserRegistrationConfirmedDomainEvent(UserRegistrationId userRegistrationId) { UserRegistrationId = userRegistrationId; }
public CreateUserCommand(Guid id, UserRegistrationId userRegistrationId) : base(id) { UserRegistrationId = userRegistrationId; }
internal SendUserRegistrationConfirmationEmailCommand(Guid id, UserRegistrationId userRegistrationId, string email) : base(id) { UserRegistrationId = userRegistrationId; Email = email; }
public override int GetHashCode() { return(UserRegistrationId != null?UserRegistrationId.GetHashCode() : 0); }
public UserRegistrationExpiredDomainEvent(UserRegistrationId userRegistrationId) { UserRegistrationId = userRegistrationId; }