public async Task WhenIUpdateTheUserWithTheFollowingInformations(string email, Table table) { var userId = _repository.GetUserIdByItsEmail(email); var dto = UsersTableMapper.ToUpdateAUserDto(table.Rows.First(), userId); _userContext.UpdatedResource = await _usersApi.Update(dto); }
public async Task WhenIUpdateUserByIdAsync() { Assert.NotNull(_usersContext.GivenUser, "There is no given user."); var userUpdate = _usersCoordinator.BuildUserModel(); _usersContext.ReturnedUser = await _usersApi.Update(_usersContext.GivenUser.Id, userUpdate) .ConfigureAwait(false); }