I've got these interfaces:
And this code:
IList<IFinder<IDomainObject>> finders = new List<IFinder<IDomainObject>>();
IFinder<IOrder> orderFinder = this.mocks.StrictMock<IFinder<IOrder>>();
finders.Add(orderFinder);
I get this error on the third line:
Argument '1': cannot convert from 'Mes.FrameworkTest.Repository.Finders.IFinder
<Mes.FrameworkTest.DomainModel.IOrder
>' to 'Mes.FrameworkTest.Repository.Finders.IFinder<Mes.FrameworkTest.DomainModel.IDomainObject
>'
Why do I get this error when IOrder is derived from IDomainObject?