diff --git a/test/Altinn.AccessManagement.Tests/Scenarios/DelegationScenarios.cs b/test/Altinn.AccessManagement.Tests/Scenarios/DelegationScenarios.cs index c5adf248..91076e19 100644 --- a/test/Altinn.AccessManagement.Tests/Scenarios/DelegationScenarios.cs +++ b/test/Altinn.AccessManagement.Tests/Scenarios/DelegationScenarios.cs @@ -135,8 +135,6 @@ public static Scenario WithRevokedDelegationToUser(IParty organization, IUserPro public static Scenario WithInstanceDelegation(IParty from, IParty to, IAccessManagementResource resource, string instanceId) => async mock => { - resource ??= ResourceSeeds.AltinnApp.Defaults; - mock.DbSeeds.AddRange([ async postgres => await postgres.DelegationMetadataRepository.InsertInstanceDelegation( new() diff --git a/test/Altinn.AccessManagement.Tests/Seeds/ResourceSeeds.cs b/test/Altinn.AccessManagement.Tests/Seeds/ResourceSeeds.cs index 3e616581..a1095847 100644 --- a/test/Altinn.AccessManagement.Tests/Seeds/ResourceSeeds.cs +++ b/test/Altinn.AccessManagement.Tests/Seeds/ResourceSeeds.cs @@ -26,7 +26,7 @@ public class ChalkboardResource : ResourceBase public new static readonly string Identifier = "chalkboard"; - public static ChalkboardResource Defaults { get; } = new MaskinportenSchema(); + public static ChalkboardResource Defaults { get; } = new ChalkboardResource(); public ChalkboardResource(params Action[] modifiers) {