Closed kimsagro1 closed 3 years ago
Hey @kimsagro1
The rule you are defining only applies to the Date
property and in this case, because it is a private set, I believe no value will be assigned. Instead you would need to use the CustomInstantiator
method.
CustomInstantiator(x => new Person(x.Date.Future()));
Hope that helps. Nick.
Given the following, I get an exception
I assumed that the rule would apply to the constructor arguments, am I misunderstanding?