Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using Bit.Core.AdminConsole.Entities;
using OneOf;

namespace Bit.Core.Billing.Providers.Services.NoopImplementations;

public class NoopBusinessUnitConverter : IBusinessUnitConverter
{
public Task<Guid> FinalizeConversion(
Organization organization,
Guid userId,
string token,
string providerKey,
string organizationKey) => throw new NotImplementedException();

public Task<OneOf<Guid, List<string>>> InitiateConversion(Organization organization, string providerAdminEmail) => throw new NotImplementedException();

public Task ResendConversionInvite(Organization organization, string providerAdminEmail) => throw new NotImplementedException();

public Task ResetConversion(Organization organization, string providerAdminEmail) => throw new NotImplementedException();
}
3 changes: 3 additions & 0 deletions src/SharedWeb/Utilities/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
using Bit.Core.Auth.UserFeatures;
using Bit.Core.Auth.UserFeatures.EmergencyAccess;
using Bit.Core.Auth.UserFeatures.PasswordValidation;
using Bit.Core.Billing.Providers.Services;
using Bit.Core.Billing.Providers.Services.NoopImplementations;
using Bit.Core.Billing.Services;
using Bit.Core.Billing.Services.Implementations;
using Bit.Core.Billing.TrialInitiation;
Expand Down Expand Up @@ -370,6 +372,7 @@ public static void AddOosServices(this IServiceCollection services)
services.AddScoped<ISecretRepository, NoopSecretRepository>();
services.AddScoped<ISecretVersionRepository, NoopSecretVersionRepository>();
services.AddScoped<IProjectRepository, NoopProjectRepository>();
services.AddTransient<IBusinessUnitConverter, NoopBusinessUnitConverter>();
}

public static void AddNoopServices(this IServiceCollection services)
Expand Down
Loading