Currently to validate a nested object we need to pass the IValitRulesProvider object to Ensure method. Actually we could pass IValitator object instead since there's no problem with that and we could simply a code even more. Honestly I don't why I didn't do this at the first time :D
Currently to validate a nested object we need to pass the
IValitRulesProviderobject toEnsuremethod. Actually we could passIValitatorobject instead since there's no problem with that and we could simply a code even more. Honestly I don't why I didn't do this at the first time :D