public IUser CreateUser(ISignUpInfo user) { var newUser = UserFactoryService.CreateUser(user); _users.Add(newUser.Id, newUser); _usersByUsername.Add(newUser.Username, newUser); return newUser; }
public IUser CreateUser(ISignUpInfo signUpInfo) { _currentUserId++; return new User(_currentUserId, signUpInfo.Username, signUpInfo.Password, signUpInfo.EmailAddress); }