# Add Telerik JustMock to Test Project

This topic demonstrates how to use **JustMock** in a new test project or integrate it in your existing project.

> **Important!**
>
> Before proceeding further, make sure you have successfully completed [Installation on Windows](https://www.telerik.com/products/justmock/documentation/getting-started/installation/instructions-windows).

## Create New Project with JustMock Visual Studio Test Project Template

1. Start by adding a new test project to your Solution. Right click on the Solution, select Add, then New Project....

   ![Add new project](https://www.telerik.com/products/justmock/documentation/assets/06e389a22689fa99912ea9830b4ac054/addnewproject.png)

2. Select the Test Project template or search for it by typing `JustMock`. Once you have selected the desired template, click Next.

   ![Choose the JustMock Test Project template](https://www.telerik.com/products/justmock/documentation/assets/79aff61117c1495737a62334a55e00f8/projecttemplate.png)

3. Using the default *JustMock Test Project* template, you can start writing JustMock tests right away.

   > See an example how to use JustMock in [JustMock API Basics](https://www.telerik.com/products/justmock/documentation/getting-started/api-basics/basics)

## Add JustMock to an existing Visual Studio Test Project

If you want to use JustMock in an existing unit test project, you should add a reference to **Telerik.JustMock.dll**.

1. Right click on your test project and select *Add Project Reference*.

   ![Add reference to a project](https://www.telerik.com/products/justmock/documentation/assets/146c163464bc50c09a9bebe41837e4eb/addreference.png)

2. Go to the *Browse* tab and navigate to the *Libraries* folder in the JustMock installation directory (by default *C:\Program Files (x86)\Progress\Telerik JustMock\Libraries*). Select **Telerik.JustMock.dll** and click OK.

   > **Important!**
   >
   > For projects compatible with **.NET Standard 2.1**, the required assembly is located at *"C:\Program Files (x86)\Progress\Telerik JustMock\Libraries\netstandard2.1"*

   ![Select Telerik.JustMock.dll reference](https://www.telerik.com/products/justmock/documentation/assets/aac60092200a2794b83c6a3b0abc8bd6/selectreference.png)

3. Further, you will need to include the *Telerik.JustMock* namespace into your test project.

   ![Include TelerikJustMockNamespace namespace](https://www.telerik.com/products/justmock/documentation/assets/334da25fca148c9c4dfba0966ed51f99/namespace.png)

4. Finally, you are ready to create your first test with JustMock.

   ![Write your first test](https://www.telerik.com/products/justmock/documentation/assets/f87ef1ab3721f2d37d6c4c0978c18dfd/firsttest.png)

   > **Tip!**
   >
   > As an altrernative you can use NuGet packages, check [Installation using NuGet package](https://www.telerik.com/products/justmock/documentation/getting-started/installation/instructions-nuget-package) topic for details.

## Next Steps

* [JustMock API Basics](https://www.telerik.com/products/justmock/documentation/getting-started/api-basics/basics)

## See Also

* [JustMock API Basics](https://www.telerik.com/products/justmock/documentation/getting-started/api-basics/basics)

* [Commercial vs Free Version](https://www.telerik.com/products/justmock/documentation/licensing/commercial-vs-free-version)
