Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pc 95 configureerbare kanalenlijst #757

Merged
merged 17 commits into from
Apr 8, 2024
9 changes: 5 additions & 4 deletions Kiss.Bff.Test/AuthorizationCheckTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
using Kiss.Bff.Beheer.Faq;
using Kiss.Bff.Beheer.Data;
using Microsoft.EntityFrameworkCore;
using Kiss.Bff.Beheer.Gespreksresultaten.Controllers;
using Kiss.Bff.Beheer.Links.Controllers;
using static Kiss.Bff.Beheer.Links.Controllers.LinksController;
using Kiss.Bff.NieuwsEnWerkinstructies.Controllers;

using static Kiss.Bff.Intern.Links.Features.LinksController;
using Kiss.Bff.NieuwsEnWerkinstructies.Features;
using Kiss.Bff.Beheer.Verwerking;
using Kiss.Bff.Intern.Links.Features;
using Kiss.Bff.Intern.Gespreksresultaten.Features;

namespace Kiss.Bff.Test
{
Expand Down
2 changes: 1 addition & 1 deletion Kiss.Bff.Test/BerichtenControllerTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Kiss.Bff.Beheer.Data;
using Kiss.Bff.NieuwsEnWerkinstructies.Controllers;
using Kiss.Bff.NieuwsEnWerkinstructies.Features;
using Kiss.Bff.NieuwsEnWerkinstructies.Data.Entities;
using Microsoft.AspNetCore.Mvc;

Expand Down
2 changes: 1 addition & 1 deletion Kiss.Bff.Test/CategorienControllerTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Kiss.Bff.Beheer.Data;
using Kiss.Bff.Beheer.Links.Controllers;
using Kiss.Bff.Beheer.Links.Data.Entities;
using Kiss.Bff.Intern.Links.Features;
using Microsoft.AspNetCore.Mvc;

namespace Kiss.Bff.Test
Expand Down
2 changes: 1 addition & 1 deletion Kiss.Bff.Test/GespreksresultatenUnitTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Kiss.Bff.Beheer.Data;
using Kiss.Bff.Beheer.Gespreksresultaten.Controllers;
using Kiss.Bff.Intern.Gespreksresultaten.Features;
using Kiss.Bff.Beheer.Gespreksresultaten.Data.Entities;
using Microsoft.AspNetCore.Mvc;

Expand Down
2 changes: 1 addition & 1 deletion Kiss.Bff.Test/GetFeaturedCountControllerTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Kiss.Bff.Beheer.Data;
using Kiss.Bff.NieuwsEnWerkinstructies.Controllers;
using Kiss.Bff.NieuwsEnWerkinstructies.Features;
using Kiss.Bff.NieuwsEnWerkinstructies.Data.Entities;
using Microsoft.AspNetCore.Mvc;

Expand Down
4 changes: 2 additions & 2 deletions Kiss.Bff.Test/LinksControllerUnitTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Kiss.Bff.Beheer.Data;
using Kiss.Bff.Beheer.Links.Controllers;
using Kiss.Bff.Beheer.Links.Data.Entities;
using Kiss.Bff.Intern.Links.Features;
using Microsoft.AspNetCore.Mvc;
using static Kiss.Bff.Beheer.Links.Controllers.LinksController;
using static Kiss.Bff.Intern.Links.Features.LinksController;

namespace Kiss.Bff.Test
{
Expand Down
2 changes: 1 addition & 1 deletion Kiss.Bff.Test/MarkeerGelezenControllerTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Security.Claims;
using Kiss.Bff.Beheer.Data;
using Kiss.Bff.NieuwsEnWerkinstructies.Controllers;
using Kiss.Bff.NieuwsEnWerkinstructies.Features;
using Kiss.Bff.NieuwsEnWerkinstructies.Data.Entities;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
Expand Down
2 changes: 1 addition & 1 deletion Kiss.Bff.Test/SearchBerichtenControllerTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Security.Claims;
using Kiss.Bff.Beheer.Data;
using Kiss.Bff.NieuwsEnWerkinstructies.Controllers;
using Kiss.Bff.NieuwsEnWerkinstructies.Features;
using Kiss.Bff.NieuwsEnWerkinstructies.Data.Entities;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
Expand Down
2 changes: 1 addition & 1 deletion Kiss.Bff.Test/SkillsUnitTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.AspNetCore.Mvc;
using Kiss.Bff.Beheer.Data;
using Kiss.Bff.NieuwsEnWerkinstructies.Controllers;
using Kiss.Bff.NieuwsEnWerkinstructies.Features;
using Kiss.Bff.NieuwsEnWerkinstructies.Data.Entities;
using Microsoft.EntityFrameworkCore;

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Kiss.Bff.Beheer.Gespreksresultaten.Data.Entities;
using Kiss.Bff.Beheer.Links.Data.Entities;
using Kiss.Bff.Beheer.Verwerking;
using Kiss.Bff.Intern.Kanalen.Data.Entities;
using Kiss.Bff.NieuwsEnWerkinstructies.Data.Entities;
using Kiss.Bff.ZaakGerichtWerken.Contactmomenten;
using Kiss.Bff.ZaakGerichtWerken.Contactverzoeken;
Expand Down Expand Up @@ -50,6 +51,12 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
modelBuilder.Entity<ContactVerzoekVragenSet>()
.Property(p => p.JsonVragen)
.HasColumnType("json");

modelBuilder.Entity<Kanaal>(k => {
k.HasIndex(p => p.Naam).IsUnique();
k.Property(p => p.Naam).IsRequired();

});
}

public DbSet<Bericht> Berichten { get; set; } = null!;
Expand All @@ -61,5 +68,6 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
public DbSet<VerwerkingsLog> VerwerkingsLogs { get; set; } = null!;
public DbSet<ContactmomentDetails> ContactMomentDetails { get; set; } = null!;
public DbSet<ContactVerzoekVragenSet> ContactVerzoekVragenSets { get; set; } = null!;
public DbSet<Kanaal> Kanalen { get; set; } = null!;
}
}
Loading
Loading