From 5d4227fa79b9072c47448a0c663e54683a6ef828 Mon Sep 17 00:00:00 2001 From: Arnaud TAMAILLON Date: Mon, 29 Jan 2024 06:56:34 +0100 Subject: [PATCH] Make Request properties and VCRHandler type public (#57) --- EasyVCR/Handlers/VCRHandler.cs | 2 +- EasyVCR/RequestElements/Request.cs | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/EasyVCR/Handlers/VCRHandler.cs b/EasyVCR/Handlers/VCRHandler.cs index f2b7c77..1644868 100644 --- a/EasyVCR/Handlers/VCRHandler.cs +++ b/EasyVCR/Handlers/VCRHandler.cs @@ -13,7 +13,7 @@ namespace EasyVCR.Handlers /// A handler that records and replays HTTP requests and responses. /// // ReSharper disable once InconsistentNaming - internal class VCRHandler : DelegatingHandler + public class VCRHandler : DelegatingHandler { private readonly Cassette _cassette; diff --git a/EasyVCR/RequestElements/Request.cs b/EasyVCR/RequestElements/Request.cs index 7e85d8e..f79066f 100644 --- a/EasyVCR/RequestElements/Request.cs +++ b/EasyVCR/RequestElements/Request.cs @@ -15,7 +15,7 @@ public class Request : HttpElement /// The body of the request. /// [JsonProperty("Body")] - internal string? Body { get; set; } + public string? Body { get; set; } /// /// The content type of the body of the response. @@ -31,22 +31,25 @@ internal ContentType? BodyContentType /// The content headers of the request. /// [JsonProperty("ContentHeaders")] - internal IDictionary? ContentHeaders { get; set; } + public IDictionary? ContentHeaders { get; set; } + /// /// The method of the request. /// [JsonProperty("Method")] - internal string Method { get; set; } + public string Method { get; set; } + /// /// The request headers of the request. /// [JsonProperty("RequestHeaders")] - internal IDictionary RequestHeaders { get; set; } + public IDictionary RequestHeaders { get; set; } + /// /// The URL of the request. /// [JsonProperty("Uri")] - internal string? Uri { get; set; } + public string? Uri { get; set; } /// /// The content type of the body of the response (string).