Example #1
0
 internal ShouldBe(ApiResult apiResult, IBadRequestProvider badRequestProvider, LogWriter logWriter,
                   BardJsonSerializer jsonSerializer)
 {
     _apiResult      = apiResult;
     _logWriter      = logWriter;
     _jsonSerializer = jsonSerializer;
     badRequestProvider.StringContent = apiResult.ResponseString;
     BadRequest          = new BadRequestProviderDecorator(this, badRequestProvider);
     _httpResponse       = apiResult.ResponseMessage;
     _httpResponseString = apiResult.ResponseString;
     _performanceMonitor = new PerformanceMonitor(_logWriter);
 }