This commit is contained in:
Maarten Zeeman
2025-08-21 13:58:58 +02:00
commit bf8c71c504
27 changed files with 809 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Cortex.Mediator" Version="1.7.0" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,7 @@
namespace Lutra.Application.Models.Supermarkten
{
public record Supermarkt
{
public required string Name { get; init; }
}
}

View File

@@ -0,0 +1,11 @@
using Lutra.Application.Models.Supermarkten;
namespace Lutra.Application.Models.Verspakketten
{
public record Verspakket
{
public required string Name { get; init; }
public required string Rating { get; init; }
public Supermarkt Supermarkt { get; init; }
}
}

View File

@@ -0,0 +1,15 @@
using Cortex.Mediator.Queries;
namespace Lutra.Application.Verspakketten
{
public sealed partial class GetVerspakketten
{
public sealed class Handler : IQueryHandler<Query, Response>
{
public async Task<Response> Handle(Query request, CancellationToken cancellationToken)
{
return new Response { Verspakketten = [] };
}
}
}
}

View File

@@ -0,0 +1,9 @@
using Cortex.Mediator.Queries;
namespace Lutra.Application.Verspakketten
{
public sealed partial class GetVerspakketten
{
public record Query(int Skip, int Take) : IQuery<Response>;
}
}

View File

@@ -0,0 +1,12 @@
using Lutra.Application.Models.Verspakketten;
namespace Lutra.Application.Verspakketten
{
public sealed partial class GetVerspakketten
{
public sealed class Response
{
public required IEnumerable<Verspakket> Verspakketten { get; set; }
}
}
}

View File

@@ -0,0 +1,4 @@
namespace Lutra.Application.Verspakketten
{
public sealed partial class GetVerspakketten { }
}