public IUser Create(string username, string password, string emailAddress) { var newUser = new User(username, password, emailAddress); if (EmailAddressExists(emailAddress)) { throw new EmailAddressDuplicateException(); } Users.Add(username.ToLower(), newUser); return newUser; }