Пример #1
0
 private void SaveMatchLevel2(MatchedName match)
 {
     // Don't save if the values are the same
     if (match.Level2NotSame())
     {
         matchProvider.SaveMatchLevel2(
             match.InputLocation.Name2,
             match.GazetteerLocation.Name1,
             match.GazetteerLocation.Name2);
     }
 }
Пример #2
0
 private static void ValidateLevel2Match(
     MatchedName match,
     GazetteerNames gazetteerNames,
     StringBuilder errorMessage)
 {
     if (gazetteerNames.IsInLevel2Names(
             match.InputLocation.Name2,
             match.InputLocation.Name1))
     {
         if (match.Level2NotSame())
         {
             // The input value is in the gazetteer but is not the same as the selected match
             errorMessage.Append(match.OriginalInput.Name2);
         }
     }
 }
Пример #3
0
 private void SaveMatchLevel2(MatchedName match)
 {
     // Don't save if the values are the same
     if (match.Level2NotSame())
     {
         matchProvider.SaveMatchLevel2(
             match.InputLocation.Name2,
             match.GazetteerLocation.Name1,
             match.GazetteerLocation.Name2);
     }
 }
Пример #4
0
 private static void ValidateLevel2Match(
     MatchedName match,
     GazetteerNames gazetteerNames,
     StringBuilder errorMessage)
 {
     if (gazetteerNames.IsInLevel2Names(
         match.InputLocation.Name2,
         match.InputLocation.Name1))
     {
         if (match.Level2NotSame())
         {
             // The input value is in the gazetteer but is not the same as the selected match
             errorMessage.Append(match.OriginalInput.Name2);
         }
     }
 }