mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-10-06 21:55:39 -04:00
CI / build-and-test (push) Canceled after 0s
CI / release-critical-tests (push) Canceled after 0s
CI / csharp-format (push) Canceled after 0s
CI / webui (push) Canceled after 0s
CI / release-manifest (push) Canceled after 0s
CI / apple-contracts (push) Canceled after 0s
CI / compose-contracts (push) Canceled after 0s
20 lines
644 B
C#
20 lines
644 B
C#
using allstarr.Core.Storage;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace allstarr.Tests;
|
|
|
|
public sealed class MigrationModelSnapshotTests
|
|
{
|
|
[Fact]
|
|
public void CheckedInSnapshotMatchesTheRuntimeModel()
|
|
{
|
|
var options = new DbContextOptionsBuilder<AllstarrDbContext>()
|
|
.UseNpgsql("Host=unused;Database=unused;Username=unused;Password=unused")
|
|
.Options;
|
|
using var context = new AllstarrDbContext(options);
|
|
|
|
Assert.False(context.Database.HasPendingModelChanges());
|
|
Assert.Equal("20260927230000_ReconcileSourceIdentityAliases", context.Database.GetMigrations().Last());
|
|
}
|
|
}
|