public async Task UpdateExistingUserAsync(string id, string person) { var userDto = _parsingManager.ParseData(person); UserDb userdb = UserModelMapper.UserDtoToDbModel(userDto); await _dbmanager.UpdateUserAsync(id, userdb); _logger.LogMessage("Updated a user in db."); }
public async Task SaveNewPersonAsync(string person) { var userDto = _parsingManager.ParseData(incomingData: person); UserDb userdb = UserModelMapper.UserDtoToDbModel(userDto); await _dbmanager.InsertUserAsync(userdb); _logger.LogMessage("Saved a user to db."); // if this is not here, the test should fail }