mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 21:18:13 -05:00
fix tests
This commit is contained in:
parent
75c6d2b0dc
commit
1384d9c58e
@ -16,8 +16,7 @@ public class InviteUserOrganizationValidationTests
|
|||||||
public void Validate_WhenOrganizationIsFreeTier_ShouldReturnValidResponse(Organization organization)
|
public void Validate_WhenOrganizationIsFreeTier_ShouldReturnValidResponse(Organization organization)
|
||||||
{
|
{
|
||||||
var inviteOrganization = new InviteOrganization(organization, new FreePlan());
|
var inviteOrganization = new InviteOrganization(organization, new FreePlan());
|
||||||
var validSubscriptionUpdate = new Valid<PasswordManagerSubscriptionUpdate>(
|
var validSubscriptionUpdate = new PasswordManagerSubscriptionUpdate(inviteOrganization, 0, 0);
|
||||||
new PasswordManagerSubscriptionUpdate(inviteOrganization, 0, 0));
|
|
||||||
|
|
||||||
var result = InviteUserOrganizationValidator.Validate(inviteOrganization, validSubscriptionUpdate);
|
var result = InviteUserOrganizationValidator.Validate(inviteOrganization, validSubscriptionUpdate);
|
||||||
|
|
||||||
@ -33,8 +32,7 @@ public class InviteUserOrganizationValidationTests
|
|||||||
organization.Seats = 3;
|
organization.Seats = 3;
|
||||||
|
|
||||||
var inviteOrganization = new InviteOrganization(organization, new FreePlan());
|
var inviteOrganization = new InviteOrganization(organization, new FreePlan());
|
||||||
var validSubscriptionUpdate = new Valid<PasswordManagerSubscriptionUpdate>(
|
var validSubscriptionUpdate = new PasswordManagerSubscriptionUpdate(inviteOrganization, 3, 1);
|
||||||
new PasswordManagerSubscriptionUpdate(inviteOrganization, 3, 1));
|
|
||||||
|
|
||||||
var result = InviteUserOrganizationValidator.Validate(inviteOrganization, validSubscriptionUpdate);
|
var result = InviteUserOrganizationValidator.Validate(inviteOrganization, validSubscriptionUpdate);
|
||||||
|
|
||||||
@ -52,8 +50,7 @@ public class InviteUserOrganizationValidationTests
|
|||||||
organization.MaxAutoscaleSeats = 4;
|
organization.MaxAutoscaleSeats = 4;
|
||||||
|
|
||||||
var inviteOrganization = new InviteOrganization(organization, new FreePlan());
|
var inviteOrganization = new InviteOrganization(organization, new FreePlan());
|
||||||
var validSubscriptionUpdate = new Valid<PasswordManagerSubscriptionUpdate>(
|
var validSubscriptionUpdate = new PasswordManagerSubscriptionUpdate(inviteOrganization, 3, 1);
|
||||||
new PasswordManagerSubscriptionUpdate(inviteOrganization, 3, 1));
|
|
||||||
|
|
||||||
var result = InviteUserOrganizationValidator.Validate(inviteOrganization, validSubscriptionUpdate);
|
var result = InviteUserOrganizationValidator.Validate(inviteOrganization, validSubscriptionUpdate);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user