Skip to content

Commit b771944

Browse files
authored
[dotnet] Mark network request id as non-nullable (#17082)
1 parent 3af4983 commit b771944

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

dotnet/src/webdriver/HttpRequestData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ public HttpRequestData()
5656
/// <summary>
5757
/// Gets the ID of the HTTP request.
5858
/// </summary>
59-
public string? RequestId { get; internal set; }
59+
public string RequestId { get; internal set; } = null!;
6060
}

dotnet/src/webdriver/HttpResponseData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public HttpResponseData()
3737
/// <summary>
3838
/// Gets or sets the ID of the request that generated this response.
3939
/// </summary>
40-
public string? RequestId { get; set; }
40+
public string RequestId { get; set; } = null!;
4141

4242
/// <summary>
4343
/// Gets or sets the URL of the HTTP response.

dotnet/test/remote/RemoteSessionEventTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void CanFireSessionEventWithPayload()
3434
{
3535
remoteDriver.Url = simpleTestPage;
3636

37-
var payload = new Dictionary<string, object?>
37+
var payload = new Dictionary<string, object>
3838
{
3939
{ "testName", "LoginTest" },
4040
{ "error", "Element not found" }

0 commit comments

Comments
 (0)