mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-08-26 05:34:12 +02:00
* SystemTextJsonMatcher * , * . * new projectx * Update test/WireMock.Net.Tests/Pact/PactTests.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update test/WireMock.Net.Tests/WebSockets/WebSocketIntegrationTests.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/WireMock.Net/WireMock.Net.csproj Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/WireMock.Net.Minimal/Properties/AssemblyInfo.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * . * more tests * . * . * x * ... * . * fix tests * 0.11.0 * . * delete jsonutils.cs * s * fix findings * Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> * Potential fix for pull request finding 'Missing Dispose call on local IDisposable' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> * JsonConverter 0.12.0 * -- tools --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
// Copyright © WireMock.Net
|
|
|
|
using JetBrains.Annotations;
|
|
using WireMock.Handlers;
|
|
|
|
namespace WireMock.Transformers;
|
|
|
|
/// <summary>
|
|
/// Defines the transformer context used to render and evaluate templates during response transformation.
|
|
/// </summary>
|
|
[PublicAPI]
|
|
public interface ITransformerContext
|
|
{
|
|
/// <summary>
|
|
/// Gets the file system handler used by the current transformer context.
|
|
/// </summary>
|
|
IFileSystemHandler FileSystemHandler { get; }
|
|
|
|
/// <summary>
|
|
/// Renders the specified template text using the supplied model.
|
|
/// </summary>
|
|
/// <param name="text">The template text to render.</param>
|
|
/// <param name="model">The model used during rendering.</param>
|
|
/// <returns>The rendered text.</returns>
|
|
string ParseAndRender(string text, object model);
|
|
|
|
/// <summary>
|
|
/// Evaluates the specified template text using the supplied model.
|
|
/// </summary>
|
|
/// <param name="text">The template text to evaluate.</param>
|
|
/// <param name="model">The model used during evaluation.</param>
|
|
/// <returns>The evaluated value.</returns>
|
|
object? ParseAndEvaluate(string text, object model);
|
|
}
|