Skip to content
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 the ref attribute is used instead of type.

In order to install the FakeDb.NSubstitute package run the following command in the NuGet Package Manager Console:

PM> Install-Package Sitecore.FakeDb.NSubstitute
Clone this wiki locally