mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-20 00:03:48 +01:00
* Add TIOBE + include SonarAnalyzer.CSharp * . * cp * Copyright © WireMock.Net * more fixes * fix * xpath * if (Matchers == null || !Matchers.Any()) * if (Matchers != null) * ? * . * .
15 lines
403 B
C#
15 lines
403 B
C#
// Copyright © WireMock.Net
|
|
|
|
namespace WireMock.ResponseBuilders;
|
|
|
|
public partial class Response
|
|
{
|
|
/// <inheritdoc cref="IFaultResponseBuilder.WithFault(FaultType, double?)"/>
|
|
public IResponseBuilder WithFault(FaultType faultType, double? percentage = null)
|
|
{
|
|
ResponseMessage.FaultType = faultType;
|
|
ResponseMessage.FaultPercentage = percentage;
|
|
|
|
return this;
|
|
}
|
|
} |