mirror of
https://github.com/bitwarden/server
synced 2025-12-19 01:33:20 +00:00
Include http context in tests
This commit is contained in:
@@ -12,6 +12,7 @@ public class SeederApiApplicationFactory : WebApplicationFactoryBase<Startup>
|
|||||||
_configureTestServices.Add(serviceCollection =>
|
_configureTestServices.Add(serviceCollection =>
|
||||||
{
|
{
|
||||||
serviceCollection.AddSingleton<IPlayIdService, NeverPlayIdServices>();
|
serviceCollection.AddSingleton<IPlayIdService, NeverPlayIdServices>();
|
||||||
|
serviceCollection.AddHttpContextAccessor();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user