initial
This commit is contained in:
13
Lutra/Lutra.Application/Lutra.Application.csproj
Normal file
13
Lutra/Lutra.Application/Lutra.Application.csproj
Normal 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>
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Lutra.Application.Models.Supermarkten
|
||||
{
|
||||
public record Supermarkt
|
||||
{
|
||||
public required string Name { get; init; }
|
||||
}
|
||||
}
|
||||
11
Lutra/Lutra.Application/Models/Verspakketten/Verspakket.cs
Normal file
11
Lutra/Lutra.Application/Models/Verspakketten/Verspakket.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
@@ -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 = [] };
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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>;
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
namespace Lutra.Application.Verspakketten
|
||||
{
|
||||
public sealed partial class GetVerspakketten { }
|
||||
}
|
||||
Reference in New Issue
Block a user