Hi,
What you are looking for is called "conditional expectations". Based on the value of arguments sent to the method, you want to set the behavior - return differnet values or even decide to mock or call the original method.
Here's the example, taken from the TypeMock Help file (which you should look up under "Conditional Expectations for Natural TypeMock"):
[Test] public void Conditional ()
{
using (RecordExpectations recorder = RecorderManager.StartRecording())
{
// Always return TypeMock for great_mocking_framework key
DateBase.GetValueForKey("great_mocking_framework");
recorder.Return("TypeMock").RepeatAlways().WhenArgumentsMatch();
// Always return Natural for easy_way key
DateBase.GetValueForKey("easy_way");
recorder.Return("Natural").RepeatAlways().WhenArgumentsMatch();
}
}
Let me know if you need additional assitance.