public void TestUpdatingFirstNameLastName() { var role = new Role(new [] { Permission.ChangeUserDetails }); var user = new User("Jane", "Doe", "JaneDoe", role); var userDao = new UserDao(); user.Login(); userDao.SaveUser(user); var userService = new UserService(userDao); userService.ChangeName(user.Username, "Joan", "Doh"); user = userDao.GetUserByUsername(user.Username); Assert.That(user.FirstName, Is.EqualTo("Joan")); Assert.That(user.LastName, Is.EqualTo("Doh")); }