Files
Umbraco-CMS/src/Umbraco.Tests/Testing/UmbracoTestOptions.cs

40 lines
1019 B
C#
Raw Normal View History

2016-12-16 10:40:14 +01:00
namespace Umbraco.Tests.Testing
2016-11-05 19:23:55 +01:00
{
public static class UmbracoTestOptions
{
public enum Logger
{
// pure mocks
Mock,
// Serilog for tests
2018-10-02 15:19:01 +02:00
Serilog,
// console logger
Console
2016-11-05 19:23:55 +01:00
}
public enum Database
{
// no database
None,
// new empty database file for the entire feature
NewEmptyPerFixture,
// new empty database file per test
NewEmptyPerTest,
// new database file with schema for the entire feature
NewSchemaPerFixture,
// new database file with schema per test
NewSchemaPerTest
}
2017-05-30 15:33:13 +02:00
2018-11-28 11:05:41 +01:00
public enum TypeLoader
2017-05-30 15:33:13 +02:00
{
2018-11-28 11:05:41 +01:00
// the default, global type loader for tests
2017-05-30 15:33:13 +02:00
Default,
2018-11-28 11:05:41 +01:00
// create one type loader for the feature
2017-05-30 15:33:13 +02:00
PerFixture,
2018-11-28 11:05:41 +01:00
// create one type loader for each test
2017-05-30 15:33:13 +02:00
PerTest
}
2016-11-05 19:23:55 +01:00
}
2017-07-20 11:21:28 +02:00
}