public void CanRegister() { var validationFactory = new ValidationFactory(); var validator = new FishValidator(); validationFactory.Register(validator); validationFactory.GetValidatorFor<Fish>().Should().Be.EqualTo(validator); }
public void CanDoMultipleRegister() { var validationFactory = new ValidationFactory(); var validator = new FishValidator(); validationFactory.Register(validator); validationFactory.GetValidatorFor <Fish>().Should().Be.EqualTo(validator); }