How to set the return value of MS Fakes object?
问题 I have generated an OData Client code with the OData V4 Client Code Generator . The generated code cannot be unit tested without MS Fakes so I generated a fake assembly from it. Now I have a problem of how to actually set the return value of the methods. The "core" class in the generated code is called System : [global::Microsoft.OData.Client.OriginalNameAttribute("System")] public partial class System : global::Microsoft.OData.Client.DataServiceContext { /// <summary> /// Initialize a new