johnman
04-19-2006, 04:55 PM
Hi,
Is this possible with the Spring.Net framework.
I basically want to be able to apply an attribute to a method so that it returns stubbed data if stubs are enabled (in a config file) and have it so that this code only appears in debug builds (as I wouldn't want this extra code to appear in release builds).
The reason for this is to easily provide default data without hardcoding it into the method while backend systems (or other classes even) are being developed.
Thanks,
John
Is this possible with the Spring.Net framework.
I basically want to be able to apply an attribute to a method so that it returns stubbed data if stubs are enabled (in a config file) and have it so that this code only appears in debug builds (as I wouldn't want this extra code to appear in release builds).
The reason for this is to easily provide default data without hardcoding it into the method while backend systems (or other classes even) are being developed.
Thanks,
John