ce5555abc0
CI - Build & Test / Backend (.NET) (push) Successful in 44s
CI - Build & Test / Backend integration (PostgreSQL/Toxiproxy) (push) Failing after 57s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 2m48s
CI - Build & Test / Security Check (push) Successful in 7s
CI - Build & Test / Deploy Nexus (push) Has been skipped
19 lines
562 B
C#
19 lines
562 B
C#
using Nexus.Api.Migrations;
|
|
using Xunit;
|
|
|
|
namespace Nexus.Api.Tests;
|
|
|
|
public sealed class MigrationSnapshotTests
|
|
{
|
|
[Fact]
|
|
public void Snapshot_builds_agent_provisioning_relationships()
|
|
{
|
|
var model = new NexusDbContextModelSnapshot().Model;
|
|
var proposal = model.FindEntityType("Nexus.Api.Data.AgentProposal");
|
|
var request = model.FindEntityType("Nexus.Api.Data.AgentProvisionRequest");
|
|
|
|
Assert.NotNull(proposal?.FindNavigation("ProvisionRequests"));
|
|
Assert.NotNull(request?.FindNavigation("Proposal"));
|
|
}
|
|
}
|