1
0
mirror of https://github.com/bitwarden/server synced 2025-12-15 15:53:59 +00:00

Provide playIdService to seeder

This commit is contained in:
Matt Gibson
2025-11-18 10:59:43 -08:00
parent 54e4c7e66d
commit ac036efdae
2 changed files with 10 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ public abstract class WebApplicationFactoryBase<T> : WebApplicationFactory<T>
/// </remarks>
public bool ManagesDatabase { get; set; } = true;
private readonly List<Action<IServiceCollection>> _configureTestServices = new();
protected readonly List<Action<IServiceCollection>> _configureTestServices = new();
private readonly List<Action<IConfigurationBuilder>> _configureAppConfiguration = new();
public void SubstituteService<TService>(Action<TService> mockService)

View File

@@ -1,7 +1,15 @@
using Bit.IntegrationTestCommon.Factories;
using Bit.Core.Services;
using Bit.IntegrationTestCommon.Factories;
namespace Bit.SeederApi.IntegrationTest;
public class SeederApiApplicationFactory : WebApplicationFactoryBase<Program>
{
public SeederApiApplicationFactory()
{
_configureTestServices.Add(serviceCollection =>
{
serviceCollection.AddSingleton<IPlayIdService, NeverPlayIdServices>();
});
}
}