11 lines
338 B
C#
11 lines
338 B
C#
namespace LCU.API.Internal.Document.PerformanceTest.DB;
|
|
|
|
public static class DatabaseFactory
|
|
{
|
|
public static IDatabase Database => Environment.Type switch
|
|
{
|
|
EnvironmentType.Local => new LocalMongoDatabase(),
|
|
EnvironmentType.Azure => new AzureCosmosDb(),
|
|
_ => throw new NotImplementedException()
|
|
};
|
|
} |