using Elsa.Labels.Entities; using Elsa.Persistence.EFCore.Modules.Labels; using Microsoft.EntityFrameworkCore; namespace Elsa.Persistence.EFCore.UnitTests; /// /// The Labels unique index must be per tenant, matching Secrets' /// IX_Secret_TenantId_NormalizedName. A global unique index would make /// the name a shared resource: the second tenant could not create "urgent". /// public class LabelNormalizedNameUniquenessTests { [Fact] public void Label_HasUniqueIndex_OnTenantIdAndNormalizedName() { var builder = new ModelBuilder(); new Configurations().Configure(builder.Entity