I have a code as:
public bool MethodName(int parameter)
{
using(var service = new XYZServiceClient())
{
return service.AnyMethod();
}
}
When I tried to setup the MOQ, I got following error in the setup:
System.NotSupportedException : Invalid setup on a non-virtual (overridable in VB) member: x => x.AnyMethod()