mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-02-22 10:17:49 +01:00
* Add new package WireMock.Net.Extensions.Routing * Update documentation for WireMock.Net.Extensions.Routing * Cleanup imports * Add header to all source files inside WireMock.Net.Extensions.Routing * Add header to all source files inside WireMock.Net.Extensions.Routing.Tests * Revert unintended changes * Remove redundant build configurations * Remove incorrect links from documentation * Update nuget package references * Revert unintended changes * Migrate to AwesomeAssertions * Remove redundant project reference * Adjust formatting * Migrate to primary constructor * Refactoring: rename delegate parameter * Abstract over JSON converter * Replace WireMock with WireMock.Net in comments * Move local functions to the bottom of the methods
25 lines
789 B
C#
25 lines
789 B
C#
// Copyright © WireMock.Net
|
|
|
|
namespace WireMock.Net.Extensions.Routing.Models;
|
|
|
|
/// <summary>
|
|
/// Represents request information with a strongly-typed deserialized body for WireMock.Net routing.
|
|
/// </summary>
|
|
/// <typeparam name="TBody">The type of the deserialized request body.</typeparam>
|
|
public sealed class WireMockRequestInfo<TBody> : WireMockRequestInfo
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="WireMockRequestInfo{TBody}"/> class.
|
|
/// </summary>
|
|
/// <param name="request">The incoming request message.</param>
|
|
public WireMockRequestInfo(IRequestMessage request)
|
|
: base(request)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or initializes the deserialized request body.
|
|
/// </summary>
|
|
public TBody? Body { get; init; }
|
|
}
|