I have this block of code that I would like to test
class SearchEngine
{
public void Search()
{
var module = new SearchModule();
module.Search();
}
}
I have simplified it but I cannot provide a searchmodule instance as a parameter of the function Search, nor as a constructor parameter of the class SearchEngine.
Is there a way to insure that the module object will be a fakeiteasy fake when I write my unit test?
I would like to be able to do some CallTo verifications to the module object, notably that module.Search() was called when we call Search()