Skip to content

Commit

Permalink
Additional test warning and spelling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jviau committed Nov 7, 2024
1 parent 2607d23 commit a1e4243
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
}
}
}
Expand Down Expand Up @@ -303,13 +303,13 @@ public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string d
var metadataList = new List<IFunctionMetadata>();
var Function0RawBindings = new List<string>();
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"
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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[]
Expand All @@ -53,7 +53,7 @@ public IntegratedTriggersAndBindingsTests()
diExtension,
diAbExtension,
actionResult,
aspnetHtpp,
aspnetHttp,
httpRequest
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a1e4243

Please sign in to comment.