locked
How to fake multiple interfaces RRS feed

  • Question

  • I have a class which implements multiple interfaces, how to use Fakes to generate the stubs for this class? In Rhino Mocks, we can do like this:

    var mock = MockRepository.GenerateMock<IFirst, ISecond>(); mock.Stub(m => m.FirstProperty).PropertyBehavior(); ((ISecond)mock).Stub(k=> k.SecondProperty).PropertyBehavior();


     
    Thursday, June 30, 2016 3:43 AM

All replies