Skip to content

Commit f8b50be

Browse files
committed
Fix more warnings
1 parent 1b41ce8 commit f8b50be

5 files changed

Lines changed: 6 additions & 4 deletions

File tree

Tools/LambdaTestTool-v2/src/Amazon.Lambda.TestTool/Models/EventContainer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void ReportSuccessResponse(string response)
6868
_dataStore.RaiseStateChanged();
6969
}
7070

71-
public void ReportErrorResponse(string errorType, string errorBody)
71+
public void ReportErrorResponse(string errorType, string? errorBody)
7272
{
7373
LastUpdated = DateTime.Now;
7474
ErrorType = errorType;

Tools/LambdaTestTool-v2/tests/Amazon.Lambda.TestTool.UnitTests/Extensions/InvokeResponseExtensionsTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ await _helper.VerifyApiGatewayResponseAsync(
124124
/// This test ensures that our ToApiGatewayHttpApiV2ProxyResponse method
125125
/// correctly replicates this observed behavior, rather than the documented behavior.
126126
/// </remarks>
127+
/// <param name="inputPayload"></param>
128+
/// <param name="testName"></param>
127129
[Theory]
128130
[InlineData("Invalid_JSON_Partial_Object", "{\"name\": \"John Doe\", \"age\":", "{\"name\": \"John Doe\", \"age\":")] // Invalid JSON (partial object)
129131
[InlineData("Valid_JSON_Object", "{\"name\": \"John Doe\", \"age\": 30}", "{\"name\": \"John Doe\", \"age\": 30}")] // Valid JSON object without statusCode

Tools/LambdaTestTool-v2/tests/Amazon.Lambda.TestTool.UnitTests/Processes/ApiGatewayEmulatorProcessTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
namespace Amazon.Lambda.TestTool.UnitTests.Processes;
1414

15-
public class ApiGatewayEmulatorProcessTests(ITestOutputHelper testOutputHelper)
15+
public class ApiGatewayEmulatorProcessTests
1616
{
1717
[Theory]
1818
[InlineData(ApiGatewayEmulatorMode.Rest, HttpStatusCode.Forbidden, "{\"message\":\"Missing Authentication Token\"}")]

Tools/LambdaTestTool-v2/tests/Amazon.Lambda.TestTool.UnitTests/RuntimeApiTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
namespace Amazon.Lambda.TestTool.UnitTests;
2121

22-
public class RuntimeApiTests(ITestOutputHelper testOutputHelper)
22+
public class RuntimeApiTests
2323
{
2424
#if DEBUG
2525
[Fact]

Tools/LambdaTestTool-v2/tests/Amazon.Lambda.TestTool.UnitTests/Utilities/DirectoryHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static void CleanUp(string directory)
4040
}
4141

4242
/// <summary>
43-
/// <see cref="https://docs.microsoft.com/en-us/dotnet/standard/io/how-to-copy-directories"/>
43+
/// https://docs.microsoft.com/en-us/dotnet/standard/io/how-to-copy-directories
4444
/// </summary>
4545
private static void CopyDirectory(DirectoryInfo dir, string destDirName)
4646
{

0 commit comments

Comments
 (0)