-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: or-1976 voeg normalizer toe aan Ãpubliek zoeken
- Loading branch information
1 parent
abda924
commit 0868a9c
Showing
15 changed files
with
314 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
...stry.Test.Public.Api/Fixtures/GivenEvents/Scenarios/V019_Vereniging19ForSearchScenario.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
namespace AssociationRegistry.Test.Public.Api.Fixtures.GivenEvents.Scenarios; | ||
|
||
using AssociationRegistry.Framework; | ||
using Events; | ||
using NodaTime; | ||
using Vereniging; | ||
|
||
public class V019_Vereniging19ForSearchScenario : IScenario | ||
{ | ||
public readonly FeitelijkeVerenigingWerdGeregistreerd FeitelijkeVerenigingWerdGeregistreerd = new( | ||
VCode: "V0001019", | ||
Naam: "Nieuwe Auto's die Starten Afligem", | ||
KorteNaam: "NASA", | ||
KorteBeschrijving: "Wij verzamelen nieuwe en oude autos.", | ||
DateOnly.FromDateTime(new DateTime(year: 2024, month: 01, day: 22)), | ||
new Registratiedata.Doelgroep(Minimumleeftijd: 18, Maximumleeftijd: 99), | ||
IsUitgeschrevenUitPubliekeDatastroom: false, | ||
new[] | ||
{ | ||
new Registratiedata.Contactgegeven( | ||
ContactgegevenId: 1, | ||
Contactgegeventype.Website, | ||
Waarde: "example.org/nasafligem", | ||
Beschrijving: "Algemeen", | ||
IsPrimair: true), | ||
}, | ||
new[] | ||
{ | ||
new Registratiedata.Locatie( | ||
LocatieId: 1, | ||
Locatietype: "Correspondentie", | ||
IsPrimair: true, | ||
Naam: "Correspondentie", | ||
new Registratiedata.Adres( | ||
Straatnaam: "wasstraat", | ||
Huisnummer: "5", | ||
Busnummer: "", | ||
Postcode: "1790", | ||
Gemeente: "Affligem", | ||
Land: "België"), | ||
new Registratiedata.AdresId( | ||
Adresbron.AR, | ||
Bronwaarde: "https://data.vlaanderen.be/id/adres/0") | ||
), | ||
}, | ||
new[] | ||
{ | ||
new Registratiedata.Vertegenwoordiger( | ||
VertegenwoordigerId: 1, | ||
Insz: "01234567890", | ||
IsPrimair: true, | ||
Roepnaam: "engine", | ||
Rol: "Leader", | ||
Voornaam: "Put", | ||
Achternaam: "Put", | ||
Email: "putput@broembroem.com", | ||
Telefoon: "", | ||
Mobiel: "", | ||
SocialMedia: ""), | ||
}, | ||
new Registratiedata.HoofdactiviteitVerenigingsloket[] | ||
{ | ||
new(Code: "BLA", Naam: "Buitengewoon Leuke Afkortingen"), | ||
}); | ||
|
||
public VCode VCode | ||
=> VCode.Create(FeitelijkeVerenigingWerdGeregistreerd.VCode); | ||
|
||
public IEvent[] GetEvents() | ||
{ | ||
return new IEvent[] | ||
{ | ||
FeitelijkeVerenigingWerdGeregistreerd, | ||
}; | ||
} | ||
|
||
public CommandMetadata GetCommandMetadata() | ||
=> new(Initiator: "OVO000001", new Instant(), Guid.NewGuid()); | ||
} |
79 changes: 79 additions & 0 deletions
79
...stry.Test.Public.Api/Fixtures/GivenEvents/Scenarios/V020_Vereniging20ForSearchScenario.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
namespace AssociationRegistry.Test.Public.Api.Fixtures.GivenEvents.Scenarios; | ||
|
||
using AssociationRegistry.Framework; | ||
using Events; | ||
using NodaTime; | ||
using Vereniging; | ||
|
||
public class V020_Vereniging20ForSearchScenario : IScenario | ||
{ | ||
public readonly FeitelijkeVerenigingWerdGeregistreerd FeitelijkeVerenigingWerdGeregistreerd = new( | ||
VCode: "V0001020", | ||
Naam: "nooit oma's zonder wafels", | ||
KorteNaam: "nozw", | ||
KorteBeschrijving: "Oma's die houden van bakken", | ||
DateOnly.FromDateTime(new DateTime(year: 2024, month: 01, day: 22)), | ||
new Registratiedata.Doelgroep(Minimumleeftijd: 60, Maximumleeftijd: 99), | ||
IsUitgeschrevenUitPubliekeDatastroom: false, | ||
new[] | ||
{ | ||
new Registratiedata.Contactgegeven( | ||
ContactgegevenId: 1, | ||
Contactgegeventype.Telefoon, | ||
Waarde: "0000112233", | ||
Beschrijving: "Algemeen", | ||
IsPrimair: true), | ||
}, | ||
new[] | ||
{ | ||
new Registratiedata.Locatie( | ||
LocatieId: 1, | ||
Locatietype: "Correspondentie", | ||
IsPrimair: true, | ||
Naam: "Correspondentie", | ||
new Registratiedata.Adres( | ||
Straatnaam: "bakkershof", | ||
Huisnummer: "60", | ||
Busnummer: "B", | ||
Postcode: "1840", | ||
Gemeente: "Londerzeel", | ||
Land: "België"), | ||
new Registratiedata.AdresId( | ||
Adresbron.AR, | ||
Bronwaarde: "https://data.vlaanderen.be/id/adres/0") | ||
), | ||
}, | ||
new[] | ||
{ | ||
new Registratiedata.Vertegenwoordiger( | ||
VertegenwoordigerId: 1, | ||
Insz: "01234567890", | ||
IsPrimair: true, | ||
Roepnaam: "bakkerijhoofd", | ||
Rol: "Bakker", | ||
Voornaam: "Beau", | ||
Achternaam: "Ter Ham", | ||
Email: "", | ||
Telefoon: "", | ||
Mobiel: "", | ||
SocialMedia: ""), | ||
}, | ||
new Registratiedata.HoofdactiviteitVerenigingsloket[] | ||
{ | ||
new(Code: "BLA", Naam: "Buitengewoon Leuke Afkortingen"), | ||
}); | ||
|
||
public VCode VCode | ||
=> VCode.Create(FeitelijkeVerenigingWerdGeregistreerd.VCode); | ||
|
||
public IEvent[] GetEvents() | ||
{ | ||
return new IEvent[] | ||
{ | ||
FeitelijkeVerenigingWerdGeregistreerd, | ||
}; | ||
} | ||
|
||
public CommandMetadata GetCommandMetadata() | ||
=> new(Initiator: "OVO000001", new Instant(), Guid.NewGuid()); | ||
} |
7 changes: 7 additions & 0 deletions
7
test/AssociationRegistry.Test.Public.Api/Framework/CaseInsensitiveComparer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace AssociationRegistry.Test.Public.Api.Framework; | ||
|
||
public class CaseInsensitiveComparer : IComparer<string> | ||
{ | ||
public int Compare(string? x, string? y) | ||
=> string.Compare(x, y, StringComparison.InvariantCultureIgnoreCase); | ||
} |
7 changes: 0 additions & 7 deletions
7
test/AssociationRegistry.Test.Public.Api/Framework/CaseSensitiveComparer.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.