2020-12-19 08:17:35 +01:00
|
|
|
// Copyright (c) Umbraco.
|
|
|
|
|
// See LICENSE for more details.
|
|
|
|
|
|
2022-06-21 08:09:38 +02:00
|
|
|
namespace Umbraco.Cms.Tests.Common.Testing;
|
|
|
|
|
|
|
|
|
|
public static class UmbracoTestOptions
|
2020-03-30 20:55:13 +11:00
|
|
|
{
|
2022-06-21 08:09:38 +02:00
|
|
|
public enum Database
|
2020-03-30 20:55:13 +11:00
|
|
|
{
|
2022-06-21 08:09:38 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// no database
|
|
|
|
|
/// </summary>
|
|
|
|
|
None,
|
2020-12-19 08:17:35 +01:00
|
|
|
|
2022-06-21 08:09:38 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// new empty database file for the entire fixture
|
|
|
|
|
/// </summary>
|
|
|
|
|
NewEmptyPerFixture,
|
2020-12-19 08:17:35 +01:00
|
|
|
|
2022-06-21 08:09:38 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// new empty database file per test
|
|
|
|
|
/// </summary>
|
|
|
|
|
NewEmptyPerTest,
|
2020-03-30 20:55:13 +11:00
|
|
|
|
2022-06-21 08:09:38 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// new database file with schema for the entire fixture
|
|
|
|
|
/// </summary>
|
|
|
|
|
NewSchemaPerFixture,
|
2020-12-19 08:17:35 +01:00
|
|
|
|
2022-06-21 08:09:38 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// new database file with schema per test
|
|
|
|
|
/// </summary>
|
|
|
|
|
NewSchemaPerTest
|
|
|
|
|
}
|
2020-12-19 08:17:35 +01:00
|
|
|
|
2022-06-21 08:09:38 +02:00
|
|
|
public enum Logger
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// pure mocks
|
|
|
|
|
/// </summary>
|
|
|
|
|
Mock,
|
2020-12-19 08:17:35 +01:00
|
|
|
|
2022-06-21 08:09:38 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// Serilog for tests
|
|
|
|
|
/// </summary>
|
|
|
|
|
Serilog,
|
2020-12-19 08:17:35 +01:00
|
|
|
|
2022-06-21 08:09:38 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// console logger
|
|
|
|
|
/// </summary>
|
|
|
|
|
Console
|
|
|
|
|
}
|
2020-03-30 20:55:13 +11:00
|
|
|
|
2022-06-21 08:09:38 +02:00
|
|
|
public enum TypeLoader
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// the default, global type loader for tests
|
|
|
|
|
/// </summary>
|
|
|
|
|
Default,
|
2020-12-19 08:17:35 +01:00
|
|
|
|
2022-06-21 08:09:38 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// create one type loader for the feature
|
|
|
|
|
/// </summary>
|
|
|
|
|
PerFixture,
|
2020-12-19 08:17:35 +01:00
|
|
|
|
2022-06-21 08:09:38 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// create one type loader for each test
|
|
|
|
|
/// </summary>
|
|
|
|
|
PerTest
|
2020-03-30 20:55:13 +11:00
|
|
|
}
|
|
|
|
|
}
|