The VerifierResultsCollection is returned from a call to someEntity.VerifierEngine.Execute(...). For a triggered verification, the call is made implicitly in the generated property setter code.
To explicitly make this call, you can create a property interceptor method that will get executed before any property set:
[BeforeSet]
public void BeforeSetAny(IPropertyInterceptorArgs args)
{
var entityPropertyArgs = args as IEntityPropertySetInterceptorArgs;
var verificationResults = this.VerifierEngine.Execute(entityPropertyArgs.Instance, entityPropertyArgs.EntityProperty.Name, entityPropertyArgs.Value);
}
This method can be implemented in a Base class, in which case, it will be called for any property set.
Or you can implement it such that it only applies to properties on a specific type:
[BeforeSet]
public void BeforeAnyEmployeeSet(PropertyInterceptorArgs<Employee, Object> args)
{
var entityPropertyArgs = args as IEntityPropertySetInterceptorArgs;
var results = this.VerifierEngine.Execute(entityPropertyArgs.Instance, entityPropertyArgs.EntityProperty.Name, entityPropertyArgs.Value);
}
You can also vary the above such that the Execute is called AfterSet, depending on how your verifier is configured.
Review the "Property Interceptor" chapter in the Developer's Guide for more details on how to implement property interceptors.