Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dotnet/src/webdriver/Command.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ public Command(string name, string jsonParameters)
/// <param name="sessionId">Session ID the driver is using</param>
/// <param name="name">Name of the command</param>
/// <param name="parameters">Parameters for that command</param>
/// <exception cref="ArgumentNullException">If <paramref name="name"/> is <see langword="null"/>.</exception>
public Command(SessionId? sessionId, string name, Dictionary<string, object>? parameters)
{
this.SessionId = sessionId;
this.Parameters = parameters ?? new Dictionary<string, object>();
this.Name = name;
this.Name = name ?? throw new ArgumentNullException(nameof(name));
}

/// <summary>
Expand Down
1 change: 1 addition & 0 deletions dotnet/src/webdriver/CommandInfoRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public bool IsCommandNameDefined(string commandName)
/// </summary>
/// <param name="commandName">The <see cref="DriverCommand"/> for which to get the information.</param>
/// <returns>The <see cref="HttpCommandInfo"/> for the specified command, or <see langword="null"/> if not found or value is not <typeparamref name="T"/>.</returns>
/// <exception cref="ArgumentNullException">If <paramref name="commandName"/> is <see langword="null"/>.</exception>
public T? GetCommandInfo<T>(string commandName) where T : CommandInfo
{
T? toReturn = default;
Expand Down
Loading
Loading