public async Task Update_Should_update_a_user() { var expected = CreateUser(); await _repository.Insert(expected); expected.FirstName = "Edited"; expected.LastName = "Updated"; await _repository.Update(expected); var actual = await _repository.GetUserById(expected.Id); Assert.AreEqual(expected, actual); }
public async Task UpdateUsersAsync(Stargarments.Domain.Entities.User user) { await userServiceRepository.Update <Stargarments.Domain.Entities.User>(user.Id, user); }