Templates

Learn how to use pre-built Bellatrix templates.

Create Projects from Visual Studio

You can use built-in Visual Studio templates to create Bellatrix test projects. From File -> New -> Project you can find all Bellatrix projects too

Create New Project Visual Studio

Create Getting Started Visual Studio

Create Projects from CLI

You can create an empty tests project with all required files through dotnet CLI

  1. Open CMD
  2. Using the command “dotnet new -l” you can see all available templates

Before you can create a new project, you need to install the Bellatrix template first.

All available templates:

  • Bellatrix.API.GettingStarted
  • Bellatrix.API.MSTest.Tests
  • Bellatrix.API.NUnit.Tests
  • Bellatrix.Desktop.GettingStarted
  • Bellatrix.Desktop.MSTest.Tests
  • Bellatrix.Desktop.NUnit.Tests
  • Bellatrix.Web.GettingStarted
  • Bellatrix.Web.MSTest.Tests
  • Bellatrix.Web.NUnit.Tests

Install Template

dotnet new -i Bellatrix.Desktop.GettingStarted

Create Project from Template

  1. Open the folder where you want the files to be placed
  2. Open CMD
  3. Type the bellow command for the desired template
dotnet new Bellatrix.Desktop.GettingStarted

Create Getting Started CLI