From a5534fbf485d516813a590e37cdaf85bc0e744fc Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 19 Jan 2026 21:51:55 +0100 Subject: [PATCH] Auth Api implementation --- .gitignore | 484 ++++++++++++++++++ src/Auth/AuthAPI/AuthAPI.csproj | 12 + src/Auth/AuthAPI/AuthAPI.http | 6 + src/Auth/AuthAPI/Program.cs | 71 +++ .../AuthAPI/Properties/launchSettings.json | 23 + src/Auth/AuthAPI/appsettings.Development.json | 13 + src/Auth/AuthAPI/appsettings.json | 14 + .../Controllers/WeatherForecastController.cs | 32 ++ src/Registration/Registration.API/Program.cs | 23 + .../Properties/launchSettings.json | 23 + .../Registration.API/Registration.API.csproj | 13 + .../Registration.API/RegistrationAPI.http | 6 + .../Registration.API/WeatherForecast.cs | 12 + .../appsettings.Development.json | 8 + .../Registration.API/appsettings.json | 9 + .../Registration.Application/Class1.cs | 6 + .../Registration.Application.csproj | 9 + .../Registration.Domain/Class1.cs | 6 + .../Registration.Domain.csproj | 9 + src/Registration/Registration.Infra/Class1.cs | 6 + .../Registration.Infra.csproj | 9 + .../Registration.Tests.csproj | 21 + .../Registration.Tests/UnitTest1.cs | 10 + src/VbytesLanRegistration.sln | 116 +++++ 24 files changed, 941 insertions(+) create mode 100644 .gitignore create mode 100644 src/Auth/AuthAPI/AuthAPI.csproj create mode 100644 src/Auth/AuthAPI/AuthAPI.http create mode 100644 src/Auth/AuthAPI/Program.cs create mode 100644 src/Auth/AuthAPI/Properties/launchSettings.json create mode 100644 src/Auth/AuthAPI/appsettings.Development.json create mode 100644 src/Auth/AuthAPI/appsettings.json create mode 100644 src/Registration/Registration.API/Controllers/WeatherForecastController.cs create mode 100644 src/Registration/Registration.API/Program.cs create mode 100644 src/Registration/Registration.API/Properties/launchSettings.json create mode 100644 src/Registration/Registration.API/Registration.API.csproj create mode 100644 src/Registration/Registration.API/RegistrationAPI.http create mode 100644 src/Registration/Registration.API/WeatherForecast.cs create mode 100644 src/Registration/Registration.API/appsettings.Development.json create mode 100644 src/Registration/Registration.API/appsettings.json create mode 100644 src/Registration/Registration.Application/Class1.cs create mode 100644 src/Registration/Registration.Application/Registration.Application.csproj create mode 100644 src/Registration/Registration.Domain/Class1.cs create mode 100644 src/Registration/Registration.Domain/Registration.Domain.csproj create mode 100644 src/Registration/Registration.Infra/Class1.cs create mode 100644 src/Registration/Registration.Infra/Registration.Infra.csproj create mode 100644 src/Registration/Registration.Tests/Registration.Tests.csproj create mode 100644 src/Registration/Registration.Tests/UnitTest1.cs create mode 100644 src/VbytesLanRegistration.sln diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bc78471 --- /dev/null +++ b/.gitignore @@ -0,0 +1,484 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from `dotnet new gitignore` + +# dotenv files +.env + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET +project.lock.json +project.fragment.lock.json +artifacts/ + +# Tye +.tye/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.tlog +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio 6 auto-generated project file (contains which files were open etc.) +*.vbp + +# Visual Studio 6 workspace and project file (working project files containing files to include in project) +*.dsw +*.dsp + +# Visual Studio 6 technical files +*.ncb +*.aps + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# Visual Studio History (VSHistory) files +.vshistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +# VS Code files for those working on multiple tools +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + +# Windows Installer files from build outputs +*.cab +*.msi +*.msix +*.msm +*.msp + +# JetBrains Rider +*.sln.iml +.idea/ + +## +## Visual studio for Mac +## + + +# globs +Makefile.in +*.userprefs +*.usertasks +config.make +config.status +aclocal.m4 +install-sh +autom4te.cache/ +*.tar.gz +tarballs/ +test-results/ + +# Mac bundle stuff +*.dmg +*.app + +# content below from: https://github.com/github/gitignore/blob/main/Global/macOS.gitignore +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# content below from: https://github.com/github/gitignore/blob/main/Global/Windows.gitignore +# Windows thumbnail cache files +Thumbs.db +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# Vim temporary swap files +*.swp diff --git a/src/Auth/AuthAPI/AuthAPI.csproj b/src/Auth/AuthAPI/AuthAPI.csproj new file mode 100644 index 0000000..d78f8bc --- /dev/null +++ b/src/Auth/AuthAPI/AuthAPI.csproj @@ -0,0 +1,12 @@ + + + + net9.0 + enable + enable + + + + + + diff --git a/src/Auth/AuthAPI/AuthAPI.http b/src/Auth/AuthAPI/AuthAPI.http new file mode 100644 index 0000000..18db473 --- /dev/null +++ b/src/Auth/AuthAPI/AuthAPI.http @@ -0,0 +1,6 @@ +@AuthAPI_HostAddress = http://localhost:5127 + +GET {{AuthAPI_HostAddress}}/weatherforecast/ +Accept: application/json + +### diff --git a/src/Auth/AuthAPI/Program.cs b/src/Auth/AuthAPI/Program.cs new file mode 100644 index 0000000..49a98d1 --- /dev/null +++ b/src/Auth/AuthAPI/Program.cs @@ -0,0 +1,71 @@ +using Microsoft.AspNetCore.Mvc; +using System.Text.Json.Serialization; + +var builder = WebApplication.CreateBuilder(args); +var app = builder.Build(); +app.UseHttpsRedirection(); +var enviromentVariables = builder.Configuration.GetSection("EnviromentVariables"); + +app.MapGet("/validate", async ([FromBody] SsnRequest validationRequest) => +{ + var httpClient = new HttpClient(); + var request = GetRequestWithApiKey(validationRequest, enviromentVariables); + + var response = await httpClient.PostAsJsonAsync(enviromentVariables["ApiUrl"], request); + + if (!response.IsSuccessStatusCode) + { + return Results.StatusCode((int)response.StatusCode); + } + + return Results.Ok(response.Content.ReadAsStringAsync().Result); +}) +.WithName("ValidateMember"); + +app.Run(); + +static ValidateMembersRoot GetRequestWithApiKey(SsnRequest original, IConfigurationSection enviromentVariables) +{ + var newRequest = new + { + ApiKey = enviromentVariables["ApiKey"], + Action = "confirm_membership", + AssociationNumber = enviromentVariables["AssociationNumber"] + }; + + return new ValidateMembersRoot( + new ValidateMembersRequest( + newRequest.Action, + newRequest.AssociationNumber ?? "", + newRequest.ApiKey ?? "", + YearId: null, + Firstname: original.FirstName ?? null, + Lastname: null, + SSN: original.Ssn ?? null, + Email: original.Email ?? null, + Phone: null, + MemberNick: null, + DiscordId: null + ) + ); +} + +record SsnRequest(string? Ssn, string? Email, string? FirstName); + +record ValidateMembersRoot( + [property: JsonPropertyName("request")] ValidateMembersRequest Request +); + +record ValidateMembersRequest( + [property: JsonPropertyName("action")] string Action, + [property: JsonPropertyName("association_number")] string AssociationNumber, + [property: JsonPropertyName("api_key")] string ApiKey, + [property: JsonPropertyName("year_id")] int? YearId, + [property: JsonPropertyName("firstname")] string? Firstname, + [property: JsonPropertyName("lastname")] string? Lastname, + [property: JsonPropertyName("socialsecuritynumber")] string? SSN, + [property: JsonPropertyName("email")] string? Email, + [property: JsonPropertyName("phone1")] string? Phone, + [property: JsonPropertyName("member_nick")] string? MemberNick, + [property: JsonPropertyName("discord_user_id")] string? DiscordId +); diff --git a/src/Auth/AuthAPI/Properties/launchSettings.json b/src/Auth/AuthAPI/Properties/launchSettings.json new file mode 100644 index 0000000..f5fa562 --- /dev/null +++ b/src/Auth/AuthAPI/Properties/launchSettings.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://json.schemastore.org/launchsettings.json", + "profiles": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": false, + "applicationUrl": "http://localhost:5127", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": false, + "applicationUrl": "https://localhost:7236;http://localhost:5127", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/src/Auth/AuthAPI/appsettings.Development.json b/src/Auth/AuthAPI/appsettings.Development.json new file mode 100644 index 0000000..8982012 --- /dev/null +++ b/src/Auth/AuthAPI/appsettings.Development.json @@ -0,0 +1,13 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "EnviromentVariables": { + "ApiUrl": "", + "ApiKey": "", + "AssociationNumber": "" + } +} \ No newline at end of file diff --git a/src/Auth/AuthAPI/appsettings.json b/src/Auth/AuthAPI/appsettings.json new file mode 100644 index 0000000..c43a6f9 --- /dev/null +++ b/src/Auth/AuthAPI/appsettings.json @@ -0,0 +1,14 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "EnviromentVariables": { + "ApiUrl": "", + "ApiKey": "", + "AssociationNumber": "" + }, + "AllowedHosts": "*" +} \ No newline at end of file diff --git a/src/Registration/Registration.API/Controllers/WeatherForecastController.cs b/src/Registration/Registration.API/Controllers/WeatherForecastController.cs new file mode 100644 index 0000000..b0967d6 --- /dev/null +++ b/src/Registration/Registration.API/Controllers/WeatherForecastController.cs @@ -0,0 +1,32 @@ +using Microsoft.AspNetCore.Mvc; + +namespace RegistrationAPI.Controllers; + +[ApiController] +[Route("[controller]")] +public class WeatherForecastController : ControllerBase +{ + private static readonly string[] Summaries = new[] + { + "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" + }; + + private readonly ILogger _logger; + + public WeatherForecastController(ILogger logger) + { + _logger = logger; + } + + [HttpGet(Name = "GetWeatherForecast")] + public IEnumerable Get() + { + return Enumerable.Range(1, 5).Select(index => new WeatherForecast + { + Date = DateOnly.FromDateTime(DateTime.Now.AddDays(index)), + TemperatureC = Random.Shared.Next(-20, 55), + Summary = Summaries[Random.Shared.Next(Summaries.Length)] + }) + .ToArray(); + } +} diff --git a/src/Registration/Registration.API/Program.cs b/src/Registration/Registration.API/Program.cs new file mode 100644 index 0000000..666a9c5 --- /dev/null +++ b/src/Registration/Registration.API/Program.cs @@ -0,0 +1,23 @@ +var builder = WebApplication.CreateBuilder(args); + +// Add services to the container. + +builder.Services.AddControllers(); +// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi +builder.Services.AddOpenApi(); + +var app = builder.Build(); + +// Configure the HTTP request pipeline. +if (app.Environment.IsDevelopment()) +{ + app.MapOpenApi(); +} + +app.UseHttpsRedirection(); + +app.UseAuthorization(); + +app.MapControllers(); + +app.Run(); diff --git a/src/Registration/Registration.API/Properties/launchSettings.json b/src/Registration/Registration.API/Properties/launchSettings.json new file mode 100644 index 0000000..475ef74 --- /dev/null +++ b/src/Registration/Registration.API/Properties/launchSettings.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://json.schemastore.org/launchsettings.json", + "profiles": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": false, + "applicationUrl": "http://localhost:5063", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": false, + "applicationUrl": "https://localhost:7209;http://localhost:5063", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/src/Registration/Registration.API/Registration.API.csproj b/src/Registration/Registration.API/Registration.API.csproj new file mode 100644 index 0000000..0077099 --- /dev/null +++ b/src/Registration/Registration.API/Registration.API.csproj @@ -0,0 +1,13 @@ + + + + net9.0 + enable + enable + + + + + + + diff --git a/src/Registration/Registration.API/RegistrationAPI.http b/src/Registration/Registration.API/RegistrationAPI.http new file mode 100644 index 0000000..3935a86 --- /dev/null +++ b/src/Registration/Registration.API/RegistrationAPI.http @@ -0,0 +1,6 @@ +@RegistrationAPI_HostAddress = http://localhost:5063 + +GET {{RegistrationAPI_HostAddress}}/weatherforecast/ +Accept: application/json + +### diff --git a/src/Registration/Registration.API/WeatherForecast.cs b/src/Registration/Registration.API/WeatherForecast.cs new file mode 100644 index 0000000..26e388a --- /dev/null +++ b/src/Registration/Registration.API/WeatherForecast.cs @@ -0,0 +1,12 @@ +namespace RegistrationAPI; + +public class WeatherForecast +{ + public DateOnly Date { get; set; } + + public int TemperatureC { get; set; } + + public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); + + public string? Summary { get; set; } +} diff --git a/src/Registration/Registration.API/appsettings.Development.json b/src/Registration/Registration.API/appsettings.Development.json new file mode 100644 index 0000000..0c208ae --- /dev/null +++ b/src/Registration/Registration.API/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/src/Registration/Registration.API/appsettings.json b/src/Registration/Registration.API/appsettings.json new file mode 100644 index 0000000..10f68b8 --- /dev/null +++ b/src/Registration/Registration.API/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +} diff --git a/src/Registration/Registration.Application/Class1.cs b/src/Registration/Registration.Application/Class1.cs new file mode 100644 index 0000000..8eb2c53 --- /dev/null +++ b/src/Registration/Registration.Application/Class1.cs @@ -0,0 +1,6 @@ +namespace Registration.Application; + +public class Class1 +{ + +} diff --git a/src/Registration/Registration.Application/Registration.Application.csproj b/src/Registration/Registration.Application/Registration.Application.csproj new file mode 100644 index 0000000..125f4c9 --- /dev/null +++ b/src/Registration/Registration.Application/Registration.Application.csproj @@ -0,0 +1,9 @@ + + + + net9.0 + enable + enable + + + diff --git a/src/Registration/Registration.Domain/Class1.cs b/src/Registration/Registration.Domain/Class1.cs new file mode 100644 index 0000000..2049540 --- /dev/null +++ b/src/Registration/Registration.Domain/Class1.cs @@ -0,0 +1,6 @@ +namespace Registration.Domain; + +public class Class1 +{ + +} diff --git a/src/Registration/Registration.Domain/Registration.Domain.csproj b/src/Registration/Registration.Domain/Registration.Domain.csproj new file mode 100644 index 0000000..125f4c9 --- /dev/null +++ b/src/Registration/Registration.Domain/Registration.Domain.csproj @@ -0,0 +1,9 @@ + + + + net9.0 + enable + enable + + + diff --git a/src/Registration/Registration.Infra/Class1.cs b/src/Registration/Registration.Infra/Class1.cs new file mode 100644 index 0000000..7ea19b1 --- /dev/null +++ b/src/Registration/Registration.Infra/Class1.cs @@ -0,0 +1,6 @@ +namespace Registration.Infra; + +public class Class1 +{ + +} diff --git a/src/Registration/Registration.Infra/Registration.Infra.csproj b/src/Registration/Registration.Infra/Registration.Infra.csproj new file mode 100644 index 0000000..125f4c9 --- /dev/null +++ b/src/Registration/Registration.Infra/Registration.Infra.csproj @@ -0,0 +1,9 @@ + + + + net9.0 + enable + enable + + + diff --git a/src/Registration/Registration.Tests/Registration.Tests.csproj b/src/Registration/Registration.Tests/Registration.Tests.csproj new file mode 100644 index 0000000..627a60e --- /dev/null +++ b/src/Registration/Registration.Tests/Registration.Tests.csproj @@ -0,0 +1,21 @@ + + + + net9.0 + enable + enable + false + + + + + + + + + + + + + + diff --git a/src/Registration/Registration.Tests/UnitTest1.cs b/src/Registration/Registration.Tests/UnitTest1.cs new file mode 100644 index 0000000..d5708e9 --- /dev/null +++ b/src/Registration/Registration.Tests/UnitTest1.cs @@ -0,0 +1,10 @@ +namespace Registration.Tests; + +public class UnitTest1 +{ + [Fact] + public void Test1() + { + + } +} diff --git a/src/VbytesLanRegistration.sln b/src/VbytesLanRegistration.sln new file mode 100644 index 0000000..3ab64b9 --- /dev/null +++ b/src/VbytesLanRegistration.sln @@ -0,0 +1,116 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31903.59 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Auth", "Auth", "{183AEB3A-A086-1D8D-C95E-6378F77647C3}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthAPI", "Auth\AuthAPI\AuthAPI.csproj", "{58754F59-98B7-40C4-8EC6-4D722573C928}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Registration", "Registration", "{48575FCA-8F71-C671-8B84-1816E65A1B3E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Registration.API", "Registration\Registration.API\Registration.API.csproj", "{5C82E7CA-06B0-4A0B-BCEA-03759BD7DC35}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Registration.Domain", "Registration\Registration.Domain\Registration.Domain.csproj", "{FAB6AE3E-9BFD-4381-97F3-FE3B5D6EA0D6}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Registration.Infra", "Registration\Registration.Infra\Registration.Infra.csproj", "{15EBC5AA-757D-4B6E-9585-9F7FFD56E45C}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Registration.Application", "Registration\Registration.Application\Registration.Application.csproj", "{0EF124C7-D015-480E-94E9-1AFEAD586605}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Registration.Tests", "Registration\Registration.Tests\Registration.Tests.csproj", "{940B5DE7-9D66-463D-AE94-ECCF8E6CA995}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {58754F59-98B7-40C4-8EC6-4D722573C928}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {58754F59-98B7-40C4-8EC6-4D722573C928}.Debug|Any CPU.Build.0 = Debug|Any CPU + {58754F59-98B7-40C4-8EC6-4D722573C928}.Debug|x64.ActiveCfg = Debug|Any CPU + {58754F59-98B7-40C4-8EC6-4D722573C928}.Debug|x64.Build.0 = Debug|Any CPU + {58754F59-98B7-40C4-8EC6-4D722573C928}.Debug|x86.ActiveCfg = Debug|Any CPU + {58754F59-98B7-40C4-8EC6-4D722573C928}.Debug|x86.Build.0 = Debug|Any CPU + {58754F59-98B7-40C4-8EC6-4D722573C928}.Release|Any CPU.ActiveCfg = Release|Any CPU + {58754F59-98B7-40C4-8EC6-4D722573C928}.Release|Any CPU.Build.0 = Release|Any CPU + {58754F59-98B7-40C4-8EC6-4D722573C928}.Release|x64.ActiveCfg = Release|Any CPU + {58754F59-98B7-40C4-8EC6-4D722573C928}.Release|x64.Build.0 = Release|Any CPU + {58754F59-98B7-40C4-8EC6-4D722573C928}.Release|x86.ActiveCfg = Release|Any CPU + {58754F59-98B7-40C4-8EC6-4D722573C928}.Release|x86.Build.0 = Release|Any CPU + {5C82E7CA-06B0-4A0B-BCEA-03759BD7DC35}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5C82E7CA-06B0-4A0B-BCEA-03759BD7DC35}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5C82E7CA-06B0-4A0B-BCEA-03759BD7DC35}.Debug|x64.ActiveCfg = Debug|Any CPU + {5C82E7CA-06B0-4A0B-BCEA-03759BD7DC35}.Debug|x64.Build.0 = Debug|Any CPU + {5C82E7CA-06B0-4A0B-BCEA-03759BD7DC35}.Debug|x86.ActiveCfg = Debug|Any CPU + {5C82E7CA-06B0-4A0B-BCEA-03759BD7DC35}.Debug|x86.Build.0 = Debug|Any CPU + {5C82E7CA-06B0-4A0B-BCEA-03759BD7DC35}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5C82E7CA-06B0-4A0B-BCEA-03759BD7DC35}.Release|Any CPU.Build.0 = Release|Any CPU + {5C82E7CA-06B0-4A0B-BCEA-03759BD7DC35}.Release|x64.ActiveCfg = Release|Any CPU + {5C82E7CA-06B0-4A0B-BCEA-03759BD7DC35}.Release|x64.Build.0 = Release|Any CPU + {5C82E7CA-06B0-4A0B-BCEA-03759BD7DC35}.Release|x86.ActiveCfg = Release|Any CPU + {5C82E7CA-06B0-4A0B-BCEA-03759BD7DC35}.Release|x86.Build.0 = Release|Any CPU + {FAB6AE3E-9BFD-4381-97F3-FE3B5D6EA0D6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FAB6AE3E-9BFD-4381-97F3-FE3B5D6EA0D6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FAB6AE3E-9BFD-4381-97F3-FE3B5D6EA0D6}.Debug|x64.ActiveCfg = Debug|Any CPU + {FAB6AE3E-9BFD-4381-97F3-FE3B5D6EA0D6}.Debug|x64.Build.0 = Debug|Any CPU + {FAB6AE3E-9BFD-4381-97F3-FE3B5D6EA0D6}.Debug|x86.ActiveCfg = Debug|Any CPU + {FAB6AE3E-9BFD-4381-97F3-FE3B5D6EA0D6}.Debug|x86.Build.0 = Debug|Any CPU + {FAB6AE3E-9BFD-4381-97F3-FE3B5D6EA0D6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FAB6AE3E-9BFD-4381-97F3-FE3B5D6EA0D6}.Release|Any CPU.Build.0 = Release|Any CPU + {FAB6AE3E-9BFD-4381-97F3-FE3B5D6EA0D6}.Release|x64.ActiveCfg = Release|Any CPU + {FAB6AE3E-9BFD-4381-97F3-FE3B5D6EA0D6}.Release|x64.Build.0 = Release|Any CPU + {FAB6AE3E-9BFD-4381-97F3-FE3B5D6EA0D6}.Release|x86.ActiveCfg = Release|Any CPU + {FAB6AE3E-9BFD-4381-97F3-FE3B5D6EA0D6}.Release|x86.Build.0 = Release|Any CPU + {15EBC5AA-757D-4B6E-9585-9F7FFD56E45C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {15EBC5AA-757D-4B6E-9585-9F7FFD56E45C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {15EBC5AA-757D-4B6E-9585-9F7FFD56E45C}.Debug|x64.ActiveCfg = Debug|Any CPU + {15EBC5AA-757D-4B6E-9585-9F7FFD56E45C}.Debug|x64.Build.0 = Debug|Any CPU + {15EBC5AA-757D-4B6E-9585-9F7FFD56E45C}.Debug|x86.ActiveCfg = Debug|Any CPU + {15EBC5AA-757D-4B6E-9585-9F7FFD56E45C}.Debug|x86.Build.0 = Debug|Any CPU + {15EBC5AA-757D-4B6E-9585-9F7FFD56E45C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {15EBC5AA-757D-4B6E-9585-9F7FFD56E45C}.Release|Any CPU.Build.0 = Release|Any CPU + {15EBC5AA-757D-4B6E-9585-9F7FFD56E45C}.Release|x64.ActiveCfg = Release|Any CPU + {15EBC5AA-757D-4B6E-9585-9F7FFD56E45C}.Release|x64.Build.0 = Release|Any CPU + {15EBC5AA-757D-4B6E-9585-9F7FFD56E45C}.Release|x86.ActiveCfg = Release|Any CPU + {15EBC5AA-757D-4B6E-9585-9F7FFD56E45C}.Release|x86.Build.0 = Release|Any CPU + {0EF124C7-D015-480E-94E9-1AFEAD586605}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0EF124C7-D015-480E-94E9-1AFEAD586605}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0EF124C7-D015-480E-94E9-1AFEAD586605}.Debug|x64.ActiveCfg = Debug|Any CPU + {0EF124C7-D015-480E-94E9-1AFEAD586605}.Debug|x64.Build.0 = Debug|Any CPU + {0EF124C7-D015-480E-94E9-1AFEAD586605}.Debug|x86.ActiveCfg = Debug|Any CPU + {0EF124C7-D015-480E-94E9-1AFEAD586605}.Debug|x86.Build.0 = Debug|Any CPU + {0EF124C7-D015-480E-94E9-1AFEAD586605}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0EF124C7-D015-480E-94E9-1AFEAD586605}.Release|Any CPU.Build.0 = Release|Any CPU + {0EF124C7-D015-480E-94E9-1AFEAD586605}.Release|x64.ActiveCfg = Release|Any CPU + {0EF124C7-D015-480E-94E9-1AFEAD586605}.Release|x64.Build.0 = Release|Any CPU + {0EF124C7-D015-480E-94E9-1AFEAD586605}.Release|x86.ActiveCfg = Release|Any CPU + {0EF124C7-D015-480E-94E9-1AFEAD586605}.Release|x86.Build.0 = Release|Any CPU + {940B5DE7-9D66-463D-AE94-ECCF8E6CA995}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {940B5DE7-9D66-463D-AE94-ECCF8E6CA995}.Debug|Any CPU.Build.0 = Debug|Any CPU + {940B5DE7-9D66-463D-AE94-ECCF8E6CA995}.Debug|x64.ActiveCfg = Debug|Any CPU + {940B5DE7-9D66-463D-AE94-ECCF8E6CA995}.Debug|x64.Build.0 = Debug|Any CPU + {940B5DE7-9D66-463D-AE94-ECCF8E6CA995}.Debug|x86.ActiveCfg = Debug|Any CPU + {940B5DE7-9D66-463D-AE94-ECCF8E6CA995}.Debug|x86.Build.0 = Debug|Any CPU + {940B5DE7-9D66-463D-AE94-ECCF8E6CA995}.Release|Any CPU.ActiveCfg = Release|Any CPU + {940B5DE7-9D66-463D-AE94-ECCF8E6CA995}.Release|Any CPU.Build.0 = Release|Any CPU + {940B5DE7-9D66-463D-AE94-ECCF8E6CA995}.Release|x64.ActiveCfg = Release|Any CPU + {940B5DE7-9D66-463D-AE94-ECCF8E6CA995}.Release|x64.Build.0 = Release|Any CPU + {940B5DE7-9D66-463D-AE94-ECCF8E6CA995}.Release|x86.ActiveCfg = Release|Any CPU + {940B5DE7-9D66-463D-AE94-ECCF8E6CA995}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {58754F59-98B7-40C4-8EC6-4D722573C928} = {183AEB3A-A086-1D8D-C95E-6378F77647C3} + {5C82E7CA-06B0-4A0B-BCEA-03759BD7DC35} = {48575FCA-8F71-C671-8B84-1816E65A1B3E} + {FAB6AE3E-9BFD-4381-97F3-FE3B5D6EA0D6} = {48575FCA-8F71-C671-8B84-1816E65A1B3E} + {15EBC5AA-757D-4B6E-9585-9F7FFD56E45C} = {48575FCA-8F71-C671-8B84-1816E65A1B3E} + {0EF124C7-D015-480E-94E9-1AFEAD586605} = {48575FCA-8F71-C671-8B84-1816E65A1B3E} + {940B5DE7-9D66-463D-AE94-ECCF8E6CA995} = {48575FCA-8F71-C671-8B84-1816E65A1B3E} + EndGlobalSection +EndGlobal