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);
        }
Ejemplo n.º 2
0
 public void SetupFixture()
 {
     CacheConfig.BuildCache();
 }
 public void Setup()
 {
     CacheConfig.BuildCache();
 }
Ejemplo n.º 4
0
 public void SetupGlobal()
 {
     CacheConfig.BuildCache();
 }