-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'refs/remotes/origin/dev-apilayer3' into…
… ui_fixes_v2
- Loading branch information
Showing
62 changed files
with
1,148 additions
and
485 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
github-monitor/Ahk.GitHub.Monitor.Tests/Ahk.GitHub.Monitor.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
github-monitor/Ahk.GitHub.Monitor.Tests/IntegrationTests/Helpers/MockHttpRequestData.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Security.Claims; | ||
using Microsoft.Azure.Functions.Worker; | ||
using Microsoft.Azure.Functions.Worker.Http; | ||
|
||
namespace Ahk.GitHub.Monitor.Tests.IntegrationTests; | ||
|
||
public class MockHttpRequestData : HttpRequestData | ||
{ | ||
private readonly HttpResponseData _response; | ||
|
||
public MockHttpRequestData(FunctionContext functionContext, Stream body) : base(functionContext) | ||
{ | ||
Body = body; | ||
Headers = new HttpHeadersCollection(); | ||
_response = new MockHttpResponseData(functionContext); | ||
} | ||
|
||
public override Stream Body { get; } | ||
|
||
public override HttpHeadersCollection Headers { get; } | ||
|
||
public override IReadOnlyCollection<IHttpCookie> Cookies { get; } = new List<IHttpCookie>(); | ||
|
||
public override Uri Url { get; } = new Uri("https://localhost"); | ||
|
||
public override IEnumerable<ClaimsIdentity> Identities { get; } = new List<ClaimsIdentity>(); | ||
|
||
public override string Method { get; } = "POST"; | ||
|
||
public override HttpResponseData CreateResponse() => _response; | ||
} |
23 changes: 23 additions & 0 deletions
23
github-monitor/Ahk.GitHub.Monitor.Tests/IntegrationTests/Helpers/MockHttpResponseData.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Net; | ||
using Microsoft.Azure.Functions.Worker; | ||
using Microsoft.Azure.Functions.Worker.Http; | ||
|
||
namespace Ahk.GitHub.Monitor.Tests.IntegrationTests; | ||
|
||
public class MockHttpResponseData : HttpResponseData | ||
{ | ||
public MockHttpResponseData(FunctionContext functionContext) : base(functionContext) | ||
{ | ||
Headers = new HttpHeadersCollection(); | ||
Body = new MemoryStream(); | ||
} | ||
|
||
public override HttpStatusCode StatusCode { get; set; } | ||
|
||
public override HttpHeadersCollection Headers { get; set; } | ||
|
||
public override Stream Body { get; set; } | ||
public override HttpCookies Cookies { get; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 40 additions & 17 deletions
57
github-monitor/Ahk.GitHub.Monitor/GitHubMonitorFunction.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.