With NSubstitute, is there any way to capture the value you pass to a property setter?
E.g. if I have the following interface:
public interface IStudent {
int Id { set; }
string Name { set; }
}
The say I have a substitute created e.g:
var _studentSub = Substitute.For<IStudent>();
Is there any way I can intercept and capture the value if any of the "set" methods of the substitute are invoked?