File: TestErrorLogger.cs
Web Access
Project: src\src\Features\JsonPatch.SystemTextJson\test\Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests.csproj (Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Microsoft.AspNetCore.JsonPatch.SystemTextJson;
 
public class TestErrorLogger<T> where T : class
{
    public string ErrorMessage { get; set; }
 
    public void LogErrorMessage(JsonPatchError patchError)
    {
        ErrorMessage = patchError.ErrorMessage;
    }
}