Как создать шлейф IRepository<TModel>
? У меня есть 3 интерфейса:Штучный общий интерфейс с подкладками MS
namespace DataAccessLayer.Repository.Interfaces
{
public interface IRepository<TModel> : IDisposable {...}
public interface ICustomerRepository : IRepository<CustomerModel> {...}
public interface IRepositoryContainer {...}
}
Мои DataAccessLayer.fakes
выглядит следующим образом:
<StubGeneration>
<Clear/>
<Add FullName="DataAccessLayer.Repository.Interfaces.IRepositoryContainer!"/>
<Add FullName="DataAccessLayer.Repository.Interfaces.IRiadRepository!"/>
<Add FullName="DataAccessLayer.Repository.Interfaces.IRepository!"/>
</StubGeneration>
В моих модульных тестов я могу видеть StubIRepositoryContainer
, а также ICustomerRepository
, но заглушка для IRepository<TModel>
не генерируется.
Спасибо.
Ваше решение, опуская '!', Работает для меня. Большой! – mimo