mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-02-19 00:37:42 +01:00
* WireMock.Net.Aspire * . * xxx * nuget * [CodeFactor] Apply fixes * ut * t * **WireMock.Net.Aspire** * . * t * . * . * . * TESTS * docker utils * Install .NET Aspire workload * 4 * 4! * projects: '**/test/**/*.csproj' * script: 'dotnet workload install aspire' * projects: '**/test/**/*.csproj' * coverage * WithWatchStaticMappings * Admin * typo * port * fix * . * x * ... * wait * readme * x * 2 * async * <Version>0.0.1-preview-03</Version> * ... * fix aspire * admin/pwd * Install .NET Aspire workload * 0.0.1-preview-04 * WaitForHealthAsync * ... * IsHealthyAsync * . * add eps * name: 'Execute Aspire Tests' * name: Install .NET Aspire workload * . * dotnet test * remove duplicate * . * cc * dotnet tool install --global coverlet.console * -* * merge * /d:sonar.pullrequest.provider=github * <Version>0.0.1-preview-05</Version> * // Copyright © WireMock.Net * . --------- Co-authored-by: codefactor-io <support@codefactor.io>
33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
// Copyright © WireMock.Net
|
|
|
|
using Stef.Validation;
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
namespace Aspire.Hosting.ApplicationModel;
|
|
|
|
/// <summary>
|
|
/// A resource that represents a WireMock.Net Server.
|
|
/// </summary>
|
|
public class WireMockServerResource : ContainerResource, IResourceWithServiceDiscovery
|
|
{
|
|
internal WireMockServerArguments Arguments { get; }
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="WireMockServerResource"/> class.
|
|
/// </summary>
|
|
/// <param name="name">The name of the resource.</param>
|
|
/// <param name="arguments">The arguments to start the WireMock.Net Server.</param>
|
|
public WireMockServerResource(string name, WireMockServerArguments arguments) : base(name)
|
|
{
|
|
Arguments = Guard.NotNull(arguments);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets an endpoint reference.
|
|
/// </summary>
|
|
/// <returns>An <see cref="EndpointReference"/> object representing the endpoint reference.</returns>
|
|
public EndpointReference GetEndpoint()
|
|
{
|
|
return new EndpointReference(this, "http");
|
|
}
|
|
} |