Created
March 30, 2015 11:50
-
-
Save PureKrome/d5c5797850f522e15a65 to your computer and use it in GitHub Desktop.
How to test abstract classes with FluentValidation?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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