Skip to content
sergeyshushlyapin edited this page Nov 14, 2014 · 12 revisions

Sitecore FakeDb is available on NuGet. To install the framework:

  1. Create a new Class Library project.
  2. Run the following command in the NuGet Package Manager Console:
Install-Package Sitecore.FakeDb
  1. Add references to the following assemblies:
Lucene.Net.dll
Sitecore.Kernel.dll
Sitecore.Logging.dll
Sitecore.Nexus.dll
  1. Configure license.

Configuring license

There are several ways to configure the license:

  • Copy the license.xml file to the root of your tests project
    That is the default license file location, so no any additional changes in the App.config required.

  • Modify the 'LicensePath' setting in the App.config file
    It allows to control the license file location, but requires merging the App.config when updating the FakeDb NuGet package.

  • Add the license.xml as an existing file to the root of your tests project It allows to avoid modifying the LicenseFile setting in the App.config and allows to run tests in NCrunch without configuring the Additional files to include setting.

Updating

To upgrade the framework run the following command in the NuGet Package Manager Console:

Update-Package Sitecore.FakeDb

Important:

You should always overwrite the App.config file if requested. Otherwise important configuration changes might be lost.

Clone this wiki locally