1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-28 06:36:15 -05:00

Re-ordered parameters per PR suggestion

This commit is contained in:
Brant DeBow 2025-06-27 08:45:43 -04:00
parent ec4bc194c6
commit 46745ab1d3
No known key found for this signature in database
GPG Key ID: 94411BB25947C72B
2 changed files with 2 additions and 2 deletions

View File

@ -2,4 +2,4 @@
namespace Bit.Core.AdminConsole.Models.Data.EventIntegrations;
public record HecIntegration(string Scheme, string Token, Uri Uri);
public record HecIntegration(Uri Uri, string Scheme, string Token);

View File

@ -139,7 +139,7 @@ public class OrganizationIntegrationRequestModelTests
var model = new OrganizationIntegrationRequestModel
{
Type = IntegrationType.Hec,
Configuration = JsonSerializer.Serialize(new HecIntegration("Bearer", Token: "Token", Uri: new Uri("http://localhost")))
Configuration = JsonSerializer.Serialize(new HecIntegration(Uri: new Uri("http://localhost"), Scheme: "Bearer", Token: "Token"))
};
var results = model.Validate(new ValidationContext(model)).ToList();