chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
0 votes

I have an interface defined with no class implementation. Can I fake an instance of an class which implement this interface or I need to create a dummy class implementing it first?

asked by soguy (1.8k points)

1 Answer

0 votes
One of Isolator strengths is creating fake objects from interfaces without any implementation:
var fake = Isolate.Fake.Instance<IClass>();

Should work just fine
answered by dhelper (11.9k points)