Skip to content

Instantly share code, notes, and snippets.

@PureKrome
Created March 30, 2015 11:50
Show Gist options
  • Save PureKrome/d5c5797850f522e15a65 to your computer and use it in GitHub Desktop.
Save PureKrome/d5c5797850f522e15a65 to your computer and use it in GitHub Desktop.
How to test abstract classes with FluentValidation?
// How can I create a CatValidator and EagleValidator that both use (inherit) an AnimalValidator?
public abstract class Animal
{
public string Name { get; set; }
}
public class Cat : Animal
{
public string FurColour { get; set; }
}
public class Eagle : Animal
{
public int FeatherCount { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment