public void ConstructHandler_SettingsHandler_TheNewValidationHandlerObject()
 {
   var settings = new PasswordValidationSettings();
   var constructor = new ValidationHandlerConstructor(typeof(ConcreteSettingsBasedValdiationHandler), s => true);
   var result = constructor.ConstructHandler(settings);
   Assert.IsInstanceOf<ConcreteSettingsBasedValdiationHandler>(result);
 }
 public void ConstructHandler_SimpleValidation_TheNewValidationHandlerObject()
 {
   var settings = new PasswordValidationSettings();
   var constructor = new ValidationHandlerConstructor(typeof(AlwaysFailValidationHandler), s=>true);
   var result = constructor.ConstructHandler(settings);
   Assert.IsInstanceOf<AlwaysFailValidationHandler>(result);
 }
 public void ConstructionHandler_CustomHandler_TheNewValidationHandlerObject()
 {
   var settings = new PasswordValidationSettings();
   var testCustomData = new TestCustomData();
   settings.CustomSettings.Add(typeof(TestCustomDataHandler), testCustomData);
   var constructor = new ValidationHandlerConstructor(typeof (TestCustomDataHandler), (s) => true);
   var constructionResult = constructor.ConstructHandler(settings);
   Assert.IsInstanceOf<TestCustomDataHandler>(constructionResult);
 }