public async Task SimulateError(EndpointType endpointType, SimulatedErrorType simulatedErrorType)
        {
            // Arrange
            var request = new SimulatedErrorRequest(endpointType, simulatedErrorType);

            // Act
            var response = await GetTestResponseAsync(request.GetRelativePath());

            // Assert
            if (!ExpectedSimulatedErrorResponses.TryGetValue(request, out var validator))
            {
                validator = Validator.PrettyInternalServerError();
            }

            validator(response);
        }
 private async Task <TestResponse> GetTestResponseAsync(SimulatedErrorRequest errorRequest)
 {
     return(await GetTestResponseAsync(
                errorRequest.GetRelativePath(),
                errorRequest.GetCookies()));
 }