mirror of
https://github.com/bitwarden/server.git
synced 2025-06-07 19:50:32 -05:00

Adds a SqlServerApiApplicationFactory which allows you to run api tests using SqlServer. Currently a new database is create and destroyed for each test. In the future we'd like a more optimized way to do this. The database logic is abstracted away in a ITestDatabase interface which handles the configuration, migration and teardown.
8 lines
201 B
C#
8 lines
201 B
C#
using Bit.IntegrationTestCommon;
|
|
|
|
#nullable enable
|
|
|
|
namespace Bit.Api.IntegrationTest.Factories;
|
|
|
|
public class SqlServerApiApplicationFactory() : ApiApplicationFactory(new SqlServerTestDatabase());
|