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
Hi,

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?

Thanks.
asked by (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 (11.9k points)
...