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); }
public void ChangeNickname([FromBody] User user) => _usersRepository.ChangeNickname(user.ID, user.Nickname);