Class EfCoreMigrationCoverageTests
- Namespace
- ProjectTemplate.Web.Tests
- Assembly
- ProjectTemplate.Web.Tests.dll
public sealed class EfCoreMigrationCoverageTests
- Inheritance
-
EfCoreMigrationCoverageTests
- Inherited Members
-
Properties
MigrationModelCases
public static TheoryData<string, bool, bool, int?> MigrationModelCases { get; }
Property Value
- TheoryData<string, bool, bool, int?>
MigrationOperationCases
public static TheoryData<string, int, int> MigrationOperationCases { get; }
Property Value
- TheoryData<string, int, int>
Methods
AddAuditAccountabilityContext_TargetModel_ContainsCorrelationFieldsAndIndexes()
[Fact("/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/tests/ProjectTemplate.Web.Tests/EfCoreMigrationCoverageTests.cs", 104)]
public void AddAuditAccountabilityContext_TargetModel_ContainsCorrelationFieldsAndIndexes()
ApplicationDbContextModelSnapshot_Model_PreservesCurrentPersistenceShape()
[Fact("/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/tests/ProjectTemplate.Web.Tests/EfCoreMigrationCoverageTests.cs", 144)]
public void ApplicationDbContextModelSnapshot_Model_PreservesCurrentPersistenceShape()
Migration_TargetModel_PreservesExpectedPersistenceShape(string, bool, bool, int?)
[Theory("/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/tests/ProjectTemplate.Web.Tests/EfCoreMigrationCoverageTests.cs", 60)]
[MemberData("MigrationModelCases", new object?[] { })]
public void Migration_TargetModel_PreservesExpectedPersistenceShape(string migrationName, bool expectsConcurrencyStamp, bool expectsNormalizedLookupColumns, int? expectedTimestampPrecision)
Parameters
migrationName string
expectsConcurrencyStamp bool
expectsNormalizedLookupColumns bool
expectedTimestampPrecision int?
Migration_UpAndDown_DefinesExpectedOperations(string, int, int)
[Theory("/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/tests/ProjectTemplate.Web.Tests/EfCoreMigrationCoverageTests.cs", 38)]
[MemberData("MigrationOperationCases", new object?[] { })]
public void Migration_UpAndDown_DefinesExpectedOperations(string migrationName, int expectedUpOperations, int expectedDownOperations)
Parameters
migrationName string
expectedUpOperations int
expectedDownOperations int