-
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.
- Loading branch information
1 parent
7eae16c
commit 82af5bd
Showing
40 changed files
with
1,467 additions
and
1,307 deletions.
There are no files selected for viewing
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
22 changes: 11 additions & 11 deletions
22
github-monitor/Ahk.GitHub.Monitor.Tests/IntegrationTests/Helpers/FunctionBuilder.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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
using Ahk.GitHub.Monitor.Services.EventDispatch; | ||
using Microsoft.Extensions.Logging; | ||
using Microsoft.Extensions.Options; | ||
using Moq; | ||
|
||
namespace Ahk.GitHub.Monitor.Tests.IntegrationTests | ||
namespace Ahk.GitHub.Monitor.Tests.IntegrationTests; | ||
|
||
internal static class FunctionBuilder | ||
{ | ||
internal static class FunctionBuilder | ||
public static readonly GitHubMonitorConfig AppConfig = new() | ||
{ | ||
public static readonly GitHubMonitorConfig AppConfig = new GitHubMonitorConfig() | ||
{ | ||
GitHubAppId = "appid", | ||
GitHubAppPrivateKey = "appprivatekey", | ||
GitHubWebhookSecret = "webhooksecret", | ||
}; | ||
GitHubAppId = "appid", GitHubAppPrivateKey = "appprivatekey", GitHubWebhookSecret = "webhooksecret" | ||
}; | ||
|
||
public static GitHubMonitorFunction Create(IEventDispatchService dispatchService = null) | ||
=> new GitHubMonitorFunction(dispatchService ?? new Mock<IEventDispatchService>().Object, Options.Create(AppConfig), new Mock<Microsoft.Extensions.Logging.ILogger<GitHubMonitorFunction>>().Object); | ||
} | ||
public static GitHubMonitorFunction Create(IEventDispatchService dispatchService = null) | ||
=> new(dispatchService ?? new Mock<IEventDispatchService>().Object, | ||
Options.Create(AppConfig), | ||
new Mock<ILogger<GitHubMonitorFunction>>().Object); | ||
} |
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
Oops, something went wrong.