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:
parent
ec4bc194c6
commit
46745ab1d3
@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
namespace Bit.Core.AdminConsole.Models.Data.EventIntegrations;
|
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);
|
||||||
|
@ -139,7 +139,7 @@ public class OrganizationIntegrationRequestModelTests
|
|||||||
var model = new OrganizationIntegrationRequestModel
|
var model = new OrganizationIntegrationRequestModel
|
||||||
{
|
{
|
||||||
Type = IntegrationType.Hec,
|
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();
|
var results = model.Validate(new ValidationContext(model)).ToList();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user