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