Esempio n. 1
0
        /// <summary>
        /// Updates the user.
        /// </summary>
        /// <param name="user">The user.</param>
        public void UpdateUser(User user)
        {
            if (user == null)
            {
                throw new ArgumentNullException("user");
            }

            bool duplicate = _manager.IsDuplicate(user.SteamUserId, user.FacebookUserId);

            if (duplicate)
            {
                throw new DuplicateSteamUserException();
            }

            _manager.UpdateUser(Map(user));
        }