mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 09:32:48 -05:00
Moved Slack OAuth to take into account the Organization it's being stored for. Added methods to store the top level integration for Slack
This commit is contained in:
@ -47,11 +47,8 @@ public class WebhookEventHandlerTests
|
||||
clientFactory.CreateClient(WebhookEventHandler.HttpClientName).Returns(_httpClient);
|
||||
|
||||
var repository = Substitute.For<IOrganizationIntegrationConfigurationRepository>();
|
||||
repository.GetConfigurationsAsync<WebhookConfiguration>(
|
||||
IntegrationType.Webhook,
|
||||
Arg.Any<Guid>(),
|
||||
Arg.Any<EventType>()
|
||||
).Returns(configurations);
|
||||
repository.GetConfigurationsAsync<WebhookConfiguration>(Arg.Any<Guid>(),
|
||||
IntegrationType.Webhook, Arg.Any<EventType>()).Returns(configurations);
|
||||
|
||||
return new SutProvider<WebhookEventHandler>()
|
||||
.SetDependency(repository)
|
||||
|
Reference in New Issue
Block a user