From a1e42438d664423f1e56f952ca17d6ea51dbd07f Mon Sep 17 00:00:00 2001 From: Jacob Viau Date: Wed, 6 Nov 2024 16:22:29 -0800 Subject: [PATCH] Additional test warning and spelling fixes --- .../HttpTriggerTests.cs | 14 +++++++------- .../IntegratedTriggersAndBindingsTests.cs | 4 ++-- .../ServiceBus/ServiceBusSessionMessageActions.cs | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/HttpTriggerTests.cs b/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/HttpTriggerTests.cs index 2c6280e84..ac0270b37 100644 --- a/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/HttpTriggerTests.cs +++ b/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/HttpTriggerTests.cs @@ -260,15 +260,15 @@ namespace Foo { public class HttpTriggerSimple { - [Function("JustHtt")] - public JustHttp Justhtt([HttpTrigger("get")] string req) + [Function("JustHttp")] + public JustHttpResponse JustHttp([HttpTrigger("get")] string req) { throw new NotImplementedException(); } - public class JustHttp + public class JustHttpResponse { - public HttpResponseData httpResponseProp { get; set; } + public HttpResponseData HttpResponseProp { get; set; } } } } @@ -303,13 +303,13 @@ public Task> GetFunctionMetadataAsync(string d var metadataList = new List(); var Function0RawBindings = new List(); Function0RawBindings.Add(@"{""name"":""req"",""type"":""httpTrigger"",""direction"":""In"",""methods"":[""get""],""dataType"":""String""}"); - Function0RawBindings.Add(@"{""name"":""httpResponseProp"",""type"":""http"",""direction"":""Out""}"); + Function0RawBindings.Add(@"{""name"":""HttpResponseProp"",""type"":""http"",""direction"":""Out""}"); var Function0 = new DefaultFunctionMetadata { Language = "dotnet-isolated", - Name = "JustHtt", - EntryPoint = "Foo.HttpTriggerSimple.Justhtt", + Name = "JustHttp", + EntryPoint = "Foo.HttpTriggerSimple.JustHttp", RawBindings = Function0RawBindings, ScriptFile = "TestProject.dll" }; diff --git a/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/IntegratedTriggersAndBindingsTests.cs b/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/IntegratedTriggersAndBindingsTests.cs index 2dd77d7f2..d8e922736 100644 --- a/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/IntegratedTriggersAndBindingsTests.cs +++ b/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/IntegratedTriggersAndBindingsTests.cs @@ -36,7 +36,7 @@ public IntegratedTriggersAndBindingsTests() var hostingAbExtension = typeof(IHost).Assembly; var diAbExtension = typeof(IServiceCollection).Assembly; var actionResult = typeof(IActionResult).Assembly; - var aspnetHtpp = typeof(HttpContextAccessor).Assembly; + var aspnetHttp = typeof(HttpContextAccessor).Assembly; var httpRequest = typeof(HttpRequest).Assembly; _referencedExtensionAssemblies = new[] @@ -53,7 +53,7 @@ public IntegratedTriggersAndBindingsTests() diExtension, diAbExtension, actionResult, - aspnetHtpp, + aspnetHttp, httpRequest }; } diff --git a/test/Worker.Extensions.Tests/ServiceBus/ServiceBusSessionMessageActions.cs b/test/Worker.Extensions.Tests/ServiceBus/ServiceBusSessionMessageActions.cs index 115f11ed0..d9a508568 100644 --- a/test/Worker.Extensions.Tests/ServiceBus/ServiceBusSessionMessageActions.cs +++ b/test/Worker.Extensions.Tests/ServiceBus/ServiceBusSessionMessageActions.cs @@ -53,7 +53,7 @@ private class MockSettlementClient : Settlement.SettlementClient { private readonly string _sessionId; private readonly ByteString _sessionState; - public MockSettlementClient(string sessionId, ByteString? sessionState = null) : base() + public MockSettlementClient(string sessionId, ByteString sessionState = null) : base() { _sessionId = sessionId; _sessionState = sessionState;