-
Notifications
You must be signed in to change notification settings - Fork 36
FakeDb NSubstitute
sergeyshushlyapin edited this page Apr 2, 2016
·
4 revisions
This is the extension for the FakeDb framework that allows to create NSubstitute mocks using the Sitecore Factory:
<sitecore>
<myEntity factory="nsubstitute" ref="MyProduct.IRepository, MyProduct" />
</sitecore>
Note:
Please note that theref
attribute is used instead oftype
.
In order to install the FakeDb.NSubstitute package run the following command in the NuGet Package Manager Console:
PM> Install-Package Sitecore.FakeDb.NSubstitute