1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 05:00:19 -05:00

Run dotnet format

This commit is contained in:
Alex Morask 2025-04-04 13:53:13 -04:00
parent 9ad6733d56
commit a209dd16bb
No known key found for this signature in database
GPG Key ID: 23E38285B743E3A8
8 changed files with 16 additions and 12 deletions

View File

@ -1,4 +1,4 @@
#nullable enable
#nullable enable
using System.Diagnostics.CodeAnalysis;
using Bit.Core;
using Bit.Core.AdminConsole.Entities;
@ -208,7 +208,8 @@ public class BusinessUnitConverter(
var createProviderOrganization = providerOrganizationRepository.CreateAsync(new ProviderOrganization
{
ProviderId = provider.Id, OrganizationId = organization.Id
ProviderId = provider.Id,
OrganizationId = organization.Id
});
var createProviderPlan = providerPlanRepository.CreateAsync(new ProviderPlan

View File

@ -44,7 +44,7 @@ public class BusinessUnitConverterTests
private readonly ISubscriberService _subscriberService = Substitute.For<ISubscriberService>();
private readonly IUserRepository _userRepository = Substitute.For<IUserRepository>();
private BusinessUnitConverter BuildConverter() => new (
private BusinessUnitConverter BuildConverter() => new(
_dataProtectionProvider,
_globalSettings,
_logger,
@ -222,7 +222,8 @@ public class BusinessUnitConverterTests
var user = new User
{
Id = Guid.NewGuid(), Email = providerAdminEmail
Id = Guid.NewGuid(),
Email = providerAdminEmail
};
_userRepository.GetByEmailAsync(providerAdminEmail).Returns(user);
@ -297,7 +298,8 @@ public class BusinessUnitConverterTests
var user = new User
{
Id = Guid.NewGuid(), Email = providerAdminEmail
Id = Guid.NewGuid(),
Email = providerAdminEmail
};
_providerOrganizationRepository.GetByOrganizationId(organization.Id)
@ -472,7 +474,9 @@ public class BusinessUnitConverterTests
var providerPlan = new ProviderPlan
{
Id = Guid.NewGuid(), ProviderId = provider.Id, PlanType = PlanType.EnterpriseAnnually
Id = Guid.NewGuid(),
ProviderId = provider.Id,
PlanType = PlanType.EnterpriseAnnually
};
_providerPlanRepository.GetByProviderId(provider.Id).Returns([providerPlan]);

View File

@ -1,4 +1,4 @@
#nullable enable
#nullable enable
using Bit.Admin.Billing.Models;
using Bit.Admin.Enums;
using Bit.Admin.Utilities;

View File

@ -1,4 +1,4 @@
#nullable enable
#nullable enable
using System.ComponentModel.DataAnnotations;
using Bit.Core.AdminConsole.Entities;
using Microsoft.AspNetCore.Mvc.ModelBinding;

View File

@ -13,7 +13,6 @@ using Bit.Core.Services;
using Bit.Core.Utilities;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using OneOf.Types;
namespace Bit.Api.Billing.Controllers;

View File

@ -1,4 +1,4 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations;
namespace Bit.Api.Billing.Models.Requests;

View File

@ -1,4 +1,4 @@
using Bit.Core.AdminConsole.Entities;
using Bit.Core.AdminConsole.Entities;
using Bit.Core.AdminConsole.Entities.Provider;
using Bit.Core.AdminConsole.Enums.Provider;
using OneOf;

View File

@ -1,4 +1,4 @@
namespace Bit.Core.Models.Mail.Billing;
namespace Bit.Core.Models.Mail.Billing;
public class BusinessUnitConversionInviteModel : BaseMailModel
{