Table of Contents

Class DataAccessStartupLoggerTests

Namespace
ProjectTemplate.Web.Tests
Assembly
ProjectTemplate.Web.Tests.dll
public sealed class DataAccessStartupLoggerTests
Inheritance
DataAccessStartupLoggerTests
Inherited Members

Methods

LogSqlServerMigrationPosture_SqlServerWithoutMigrations_EmitsActionableWarning()

[Fact("/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/tests/ProjectTemplate.Web.Tests/DataAccessStartupLoggerTests.cs", 9)]
public void LogSqlServerMigrationPosture_SqlServerWithoutMigrations_EmitsActionableWarning()

LogSqlServerMigrationPosture_UnaffectedPostures_DoNotWarn(string, bool)

[Theory("/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/tests/ProjectTemplate.Web.Tests/DataAccessStartupLoggerTests.cs", 45)]
[InlineData(new object?[] { "SqlServer", true })]
[InlineData(new object?[] { "sqlserver", true })]
[InlineData(new object?[] { "Sqlite", false })]
[InlineData(new object?[] { "None", false })]
[InlineData(new object?[] { "Disabled", false })]
public void LogSqlServerMigrationPosture_UnaffectedPostures_DoNotWarn(string provider, bool hasMigrationHistory)

Parameters

provider string
hasMigrationHistory bool