mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-05-31 02:50:39 +02:00
WireMock.Net.RestClient.AwesomeAssertions (#1427)
* WireMock.Net.RestClient.AwesomeAssertions * ok * atpath * fix test * sonar fixes * ports
This commit is contained in:
@@ -11,8 +11,6 @@ internal class WebSocketMessageBuilder : IWebSocketMessageBuilder
|
||||
|
||||
public byte[]? MessageBytes { get; private set; }
|
||||
|
||||
public object? MessageData { get; private set; }
|
||||
|
||||
public TimeSpan? Delay { get; private set; }
|
||||
|
||||
public WebSocketMessageType Type { get; private set; }
|
||||
@@ -41,7 +39,7 @@ internal class WebSocketMessageBuilder : IWebSocketMessageBuilder
|
||||
|
||||
public IWebSocketMessageBuilder WithDelay(int delayInMilliseconds)
|
||||
{
|
||||
Guard.Condition(delayInMilliseconds, d => d >= 0, nameof(delayInMilliseconds));
|
||||
Guard.Condition(delayInMilliseconds, d => d >= 0);
|
||||
return WithDelay(TimeSpan.FromMilliseconds(delayInMilliseconds));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user