using Bit.Core.Repositories; using Bit.SharedWeb.Play.Repositories; using Microsoft.Extensions.DependencyInjection; namespace Bit.SharedWeb.Play; public static class PlayServiceCollectionExtensions { /// /// Adds PlayId tracking decorators for User and Organization repositories using Dapper implementations. /// This replaces the standard repository implementations with tracking versions /// that record created entities for test data cleanup. Only call when TestPlayIdTrackingEnabled is true. /// public static void AddPlayIdTrackingDapperRepositories(this IServiceCollection services) { services.AddSingleton(); services.AddSingleton(); } /// /// Adds PlayId tracking decorators for User and Organization repositories using EntityFramework implementations. /// This replaces the standard repository implementations with tracking versions /// that record created entities for test data cleanup. Only call when TestPlayIdTrackingEnabled is true. /// public static void AddPlayIdTrackingEFRepositories(this IServiceCollection services) { services.AddSingleton(); services.AddSingleton(); } }