[TestClass] public class HealthCheckHttpTriggerTests { private const string CategoryIntegration = "Integration"; private const string CategoryE2E = "E2E"; private const string DefaultServerName = "Localhost"; private const string ServerNameKey = "ServerName"; private ServerFixture _fixture; [TestInitialize] public void Init() { // Gets the server name from the environment variable. var serverName = Environment.GetEnvironmentVariable(ServerNameKey); if (string.IsNullOrWhiteSpace(serverName)) { serverName = DefaultServerName; } // Creates the fixture from the factory method pattern. this._fixture = ServerFixture.CreateInstance(serverName); } ... [TestMethod] [TestCategory(CategoryIntegration)] // Adds the test category for end-to-end testing [TestCategory(CategoryE2E)] public async Task Given_Url_When_Invoked_Then_Trigger_Should_Return_Healthy() { ... } }