Why do I get int value '0' after mocking my service and specifying return value as HttpStatusCode.OK?
- First I mock my service :
private readonly IService service= Substitute.For<IService>();
Then in the test :
var statusCode = service.DoSomethingAndReturnHttpStatusCode(xmlDocument).Returns(HttpStatusCode.OK);
In the end return value is statusCode = 0
What I would expect is : OK