Ejemplo n.º 1
0
 public void Dispose()
 {
     CountryCodes.SetProvider(() => null);
 }
Ejemplo n.º 2
0
        public void Provider_Can_Not_Be_Null()
        {
            Action action = () => CountryCodes.SetProvider(null);

            action.Should().Throw <ArgumentNullException>();
        }
Ejemplo n.º 3
0
 public RegisterCountryCodes(ICountryCodeProvider instance)
 {
     _instance = instance;
     CountryCodes.SetProvider(() => _instance);
 }