2. Have the test class inherit from the BaseTests class which will automatically establish your mock connection (the constructor and TestContext can be removed)
```c#
/// <summary>
/// Summary description for DemoTest
/// </summary>
[TestClass]
publicclassDemoTest:BaseTests
{
}
```
a. If you are writing a device specific version test then override the PlatformType, the FriendlyOperatingSystemVersion used to specify where mock files are stored/named, and the OperatingSystemVersion to be used when validating the OS’s actual version number.
```c#
/// <summary>
/// Gets the Platform type these tests are targeting.
3. Define void methods with no parameters tagged with “testMethod” for each test case you want to run
```c#
[TestMethod]
publicvoidTestMethod1()
{
//
// TODO: Add test logic here
//
}
```
4. Each test should start with a call to TestHelpers.MockHttpResponder.AddMockResponse to prepare a mock response for a specified enpoint in one of three ways:
a. Default mock
Use mock data from the MockData\Defaults\<endpoint>_Default.dat file.
6. After building the test right click on it in the test explorer and select “Debug Selected Tests” to be able to hit selected break points as it runs.