Tests: Add tests for ExtensionMethods.GetRequestParameter, and coverage for ExtensionMethods.ResponseObject.

This commit is contained in:
2023-05-28 21:57:05 +02:00
parent 7cb0fc1b4a
commit 61107226c8
2 changed files with 112 additions and 3 deletions

View File

@@ -4,10 +4,15 @@ namespace VAR.WebFormsCore.Tests.Fakes;
public class FakeWebContext : IWebContext
{
public FakeWebContext(string requestMethod = "GET")
{
RequestMethod = requestMethod;
}
public string RequestPath => string.Empty;
public string RequestMethod => string.Empty;
public string RequestMethod { get; }
public Dictionary<string, string?> RequestHeader { get; } = new();
public Dictionary<string, string> RequestCookies { get; } = new();