Hi there. I'm trying to figure out if there's a way to reference the runtime value of a matcher for use in a Returns call. This seems like a pretty straightforward question, but I wasn't able to find quite what I'm wanting in the documentation, so apologies if I missed something obvious. Regardless, here's the call I'm trying to make.
Is there another method I should be calling to accomplish the same thing, or is there simply a way to reference the matcher's value?
service.Arrange<
Employee
>(emp => emp.LoadByName(Arg.AnyString)).Returns(data.employees.Where(e => e.Name == /* whatever the value matched by Arg.AnyString was */));
Is there another method I should be calling to accomplish the same thing, or is there simply a way to reference the matcher's value?