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

Used PO ID instead of Org ID on accident (#4500)

This commit is contained in:
Alex Morask
2024-07-11 11:22:15 -04:00
committed by GitHub
parent cf8ec4ed41
commit a51e4c0a7c
2 changed files with 8 additions and 1 deletions

View File

@ -169,10 +169,14 @@ public class ProviderEventServiceTests
_stripeFacade.GetSubscription(subscriptionId).Returns(subscription);
var client1Id = Guid.NewGuid();
var client2Id = Guid.NewGuid();
var clients = new List<ProviderOrganizationOrganizationDetails>
{
new ()
{
OrganizationId = client1Id,
OrganizationName = "Client 1",
Plan = "Teams (Monthly)",
Seats = 50,
@ -181,6 +185,7 @@ public class ProviderEventServiceTests
},
new ()
{
OrganizationId = client2Id,
OrganizationName = "Client 2",
Plan = "Enterprise (Monthly)",
Seats = 50,
@ -228,6 +233,7 @@ public class ProviderEventServiceTests
options.InvoiceId == invoice.Id &&
options.InvoiceNumber == invoice.Number &&
options.ClientName == "Client 1" &&
options.ClientId == client1Id &&
options.PlanName == "Teams (Monthly)" &&
options.AssignedSeats == 50 &&
options.UsedSeats == 30 &&
@ -239,6 +245,7 @@ public class ProviderEventServiceTests
options.InvoiceId == invoice.Id &&
options.InvoiceNumber == invoice.Number &&
options.ClientName == "Client 2" &&
options.ClientId == client2Id &&
options.PlanName == "Enterprise (Monthly)" &&
options.AssignedSeats == 50 &&
options.UsedSeats == 30 &&