예제 #1
0
 public void Dispose()
 {
     CountryCodes.SetProvider(() => null);
 }
        public void Provider_Can_Not_Be_Null()
        {
            Action action = () => CountryCodes.SetProvider(null);

            action.Should().Throw <ArgumentNullException>();
        }
예제 #3
0
 public RegisterCountryCodes(ICountryCodeProvider instance)
 {
     _instance = instance;
     CountryCodes.SetProvider(() => _instance);
 }