From cc7eb1d1688b84d05a2e7c457e1a190336eaee70 Mon Sep 17 00:00:00 2001 From: prtsie Date: Tue, 13 Aug 2024 17:52:45 +0300 Subject: [PATCH] Added application layer --- .../ApplicationLayer/ApplicationLayer.csproj | 13 ++++++++ .../CreateVisaApplicationRequest.cs | 30 +++++++++++++++++++ SchengenVisaApi/SchengenVisaApi.sln | 6 ++++ 3 files changed, 49 insertions(+) create mode 100644 SchengenVisaApi/ApplicationLayer/ApplicationLayer.csproj create mode 100644 SchengenVisaApi/ApplicationLayer/CreateVisaApplicationRequest.cs diff --git a/SchengenVisaApi/ApplicationLayer/ApplicationLayer.csproj b/SchengenVisaApi/ApplicationLayer/ApplicationLayer.csproj new file mode 100644 index 0000000..9ceef99 --- /dev/null +++ b/SchengenVisaApi/ApplicationLayer/ApplicationLayer.csproj @@ -0,0 +1,13 @@ + + + + net8.0 + enable + enable + + + + + + + diff --git a/SchengenVisaApi/ApplicationLayer/CreateVisaApplicationRequest.cs b/SchengenVisaApi/ApplicationLayer/CreateVisaApplicationRequest.cs new file mode 100644 index 0000000..80ce2b0 --- /dev/null +++ b/SchengenVisaApi/ApplicationLayer/CreateVisaApplicationRequest.cs @@ -0,0 +1,30 @@ +using Domains.ApplicantDomain; +using Domains.VisaApplicationDomain; + +namespace ApplicationLayer; + +public record CreateVisaApplicationRequest( + Name FullName, + Passport Passport, + DateOnly BirthDate, + string BirthCity, + string BirthCountry, + string CitizenShip, + string CitizenshipByBirth, + Gender Gender, + MaritalStatus MaritalStatus, + Name FatherName, + Name MotherName, + bool IsNonResident, + ReentryPermit ReentryPermit, + string JobTitle, + PlaceOfWork PlaceOfWork, + string DestinationCountry, + VisaCategory VisaCategory, + bool IsForGroup, + RequestedNumberOfEntries RequestedNumberOfEntries, + int ValidDaysRequested, + PastVisa[] PastVisas, + PermissionToDestCountry? PermissionToDestCountry, + PastVisit[] PastVisits + ); diff --git a/SchengenVisaApi/SchengenVisaApi.sln b/SchengenVisaApi/SchengenVisaApi.sln index c282fa7..afa86fb 100644 --- a/SchengenVisaApi/SchengenVisaApi.sln +++ b/SchengenVisaApi/SchengenVisaApi.sln @@ -4,6 +4,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SchengenVisaApi", "Schengen EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Domains", "Domains\Domains.csproj", "{5DC8BC74-5A1F-48E3-9EB8-6C50CD3D7778}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApplicationLayer", "ApplicationLayer\ApplicationLayer.csproj", "{CB0E997B-D992-412D-A153-711E419A0125}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -18,5 +20,9 @@ Global {5DC8BC74-5A1F-48E3-9EB8-6C50CD3D7778}.Debug|Any CPU.Build.0 = Debug|Any CPU {5DC8BC74-5A1F-48E3-9EB8-6C50CD3D7778}.Release|Any CPU.ActiveCfg = Release|Any CPU {5DC8BC74-5A1F-48E3-9EB8-6C50CD3D7778}.Release|Any CPU.Build.0 = Release|Any CPU + {CB0E997B-D992-412D-A153-711E419A0125}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CB0E997B-D992-412D-A153-711E419A0125}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CB0E997B-D992-412D-A153-711E419A0125}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CB0E997B-D992-412D-A153-711E419A0125}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal