public async Task<MockInstance> GetMockAsync(HttpMockRequest mockRequest) { var requestKey = mockRequest.GetRequestKey().ToBase64String(); _logger.LogInformation($"Searching Mock with RequestKey: {requestKey}"); return await _mockRepository.GetAsync(requestKey); }
public MockInstance(string requestKey, string contentType, string bodyContent) { Request = new HttpMockRequest(requestKey); Response = new HttpMockResponse(contentType, bodyContent); }
public string CreateKey(HttpMockRequest mockRequest) { var requestKey = mockRequest.GetRequestKey().ToBase64String(); _logger.LogInformation($"Created RequestKey: {requestKey}"); return requestKey; }