private void SaveMatchLevel3(MatchedName match) { // Don't save if the values are the same if (match.Level3NotSame()) { matchProvider.SaveMatchLevel3( match.InputLocation.Name3, match.GazetteerLocation.Name1, match.GazetteerLocation.Name2, match.GazetteerLocation.Name3); } }
private static void ValidateLevel3Match( MatchedName match, GazetteerNames gazetteerNames, StringBuilder errorMessage) { if (gazetteerNames.IsInLevel3Names( match.InputLocation.Name3, match.InputLocation.Name1, match.InputLocation.Name2)) { if (match.Level3NotSame()) { // The input value is in the gazetteer but is not the same as the selected match errorMessage.Append(match.OriginalInput.Name3); } } }
private void SaveMatchLevel3(MatchedName match) { // Don't save if the values are the same if (match.Level3NotSame()) { matchProvider.SaveMatchLevel3( match.InputLocation.Name3, match.GazetteerLocation.Name1, match.GazetteerLocation.Name2, match.GazetteerLocation.Name3); } }
private static void ValidateLevel3Match( MatchedName match, GazetteerNames gazetteerNames, StringBuilder errorMessage) { if (gazetteerNames.IsInLevel3Names( match.InputLocation.Name3, match.InputLocation.Name1, match.InputLocation.Name2)) { if (match.Level3NotSame()) { // The input value is in the gazetteer but is not the same as the selected match errorMessage.Append(match.OriginalInput.Name3); } } }