I have a scenario that I cannot seem to get working just like i would like.
I have been able to successfully write a test method against my private method just fine.
Now, I'm trying to write a test against my public method. In the public method, i want to the call to the private method to be mocked and return a mocked value so the remainder code in my public method will handle that result.
However, when it comes time to execute the line of code in the public method that would call the private method, all that comes back is NULL. I don't get my mocked value.
Here is my current test
var mockedClass = Mock.Create<JHADirectoryServiceAPI>(Constructor.Mocked);
var autoFix =
var otherPhoneDtoCollection_AM = autoFix.Create<IEnumerable<OtherPhoneDto>>();
var inst =
Assume the below code...
//do some local stuff
var result = GetOtherPhonesByOfficeID(value);
//Do some Stuff