From ac036efdaeae917d30118bf959790f20fbf763a5 Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Tue, 18 Nov 2025 10:59:43 -0800 Subject: [PATCH] Provide playIdService to seeder --- .../Factories/WebApplicationFactoryBase.cs | 2 +- .../SeederApiApplicationFactory.cs | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/test/IntegrationTestCommon/Factories/WebApplicationFactoryBase.cs b/test/IntegrationTestCommon/Factories/WebApplicationFactoryBase.cs index a41cd43923..99697a65a0 100644 --- a/test/IntegrationTestCommon/Factories/WebApplicationFactoryBase.cs +++ b/test/IntegrationTestCommon/Factories/WebApplicationFactoryBase.cs @@ -47,7 +47,7 @@ public abstract class WebApplicationFactoryBase : WebApplicationFactory /// public bool ManagesDatabase { get; set; } = true; - private readonly List> _configureTestServices = new(); + protected readonly List> _configureTestServices = new(); private readonly List> _configureAppConfiguration = new(); public void SubstituteService(Action mockService) diff --git a/test/SeederApi.IntegrationTest/SeederApiApplicationFactory.cs b/test/SeederApi.IntegrationTest/SeederApiApplicationFactory.cs index d4cb891ea5..0724739ff0 100644 --- a/test/SeederApi.IntegrationTest/SeederApiApplicationFactory.cs +++ b/test/SeederApi.IntegrationTest/SeederApiApplicationFactory.cs @@ -1,7 +1,15 @@ -using Bit.IntegrationTestCommon.Factories; +using Bit.Core.Services; +using Bit.IntegrationTestCommon.Factories; namespace Bit.SeederApi.IntegrationTest; public class SeederApiApplicationFactory : WebApplicationFactoryBase { + public SeederApiApplicationFactory() + { + _configureTestServices.Add(serviceCollection => + { + serviceCollection.AddSingleton(); + }); + } }