Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nsi processor #29

Merged
merged 32 commits into from
Aug 28, 2024
Merged

Nsi processor #29

merged 32 commits into from
Aug 28, 2024

Conversation

jackschonherr
Copy link
Collaborator

No description provided.

…k on console output from StructureTest (test had weird behavior, console output passes intermittently but values are correct) #18
@jackschonherr jackschonherr marked this pull request as ready for review August 28, 2024 18:21
Consequences/Consequences/NSIStreamingProcessor.cs Outdated Show resolved Hide resolved
}

public async Task TestProcessStream(BoundingBox boundingBox, Action<IConsequencesReceptor> ConsequenceReceptorProcess)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like leftover from testing. Should probably be removed. Any testing specific logic should be in the test classes.

Consequences/Consequences/NSIStreamingProcessor.cs Outdated Show resolved Hide resolved
{
try
{
// send HTTP GET request
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove comment. self evident.

Consequences/Consequences/NSIStreamingProcessor.cs Outdated Show resolved Hide resolved
Consequences/Consequences/NSIStreamingProcessor.cs Outdated Show resolved Hide resolved
Consequences/Consequences/NSIStreamingProcessor.cs Outdated Show resolved Hide resolved
Consequences/Consequences/NSIStreamingProcessor.cs Outdated Show resolved Hide resolved

}
/*
[Fact]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can probably be deleted so long as the test above covers our bases.

Consequences/Consequences/NSIStreamingProcessor.cs Outdated Show resolved Hide resolved
Copy link
Contributor

@Brennan1994 Brennan1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! address comments, and we'll merge.

@@ -25,4 +20,25 @@ public void Test()
consoleWriter.Write(r);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

await sp.Process


// Create an instance of HttpClient
using (HttpClient client = new HttpClient())
using HttpClient client = new HttpClient();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simplify new()

{
// access the properties of each structure
JsonElement propertiesElement = structure.GetProperty("properties");
Structure s = JsonSerializer.Deserialize<Structure>(propertiesElement.GetRawText());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look into how to ignore this warning

@Brennan1994 Brennan1994 merged commit 57c974e into main Aug 28, 2024
1 check passed
@Brennan1994 Brennan1994 deleted the NSI-processor branch August 28, 2024 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants