Example #1
0
        public void ShouldChangeNickname()
        {
            User user = Create.User();

            _usersRepository.ChangeNickname(user.ID, "ChangedNickname");

            User gottenUser = _db.Users.First(u => u.ID == user.ID);

            Assert.AreEqual("ChangedNickname", gottenUser.Nickname);
        }
Example #2
0
 public void ChangeNickname([FromBody] User user)
 => _usersRepository.ChangeNickname(user.ID, user.Nickname);