private static StreetType ParseStreetType(string token)
        {
            if (App.StreetTypeAbbreviations == null || App.StreetTypeAbbreviations.Count < 1)
            {
                CacheConfig.BuildCache();
            }

            var normalizedToken = token.ToLower();

            if (App.StreetTypeAbbreviations == null || !App.StreetTypeAbbreviations.Any(x => x.Value.Contains(normalizedToken)))
            {
                return(StreetType.None);
            }

            return(App.StreetTypeAbbreviations.SingleOrDefault(x => x.Value.Contains(normalizedToken)).Key);
        }
예제 #2
0
 public void SetupFixture()
 {
     CacheConfig.BuildCache();
 }
 public void Setup()
 {
     CacheConfig.BuildCache();
 }
예제 #4
0
 public void SetupGlobal()
 {
     CacheConfig.BuildCache();
 }