From c07ec70fcdc9e2e176011f90329148a829b3f308 Mon Sep 17 00:00:00 2001 From: Clement FERRERE Date: Thu, 18 Nov 2021 16:11:01 +0100 Subject: [PATCH] Corrections de la PR --- .gitignore | 390 ++++++++++++++++++ .../AgenceDto.cs | 15 - .../AgenceSqlDto.cs | 22 + .../BusinessUnitDto.cs | 17 - .../BusinessUnitSqlDto.cs | 24 ++ .../CollaborateurAppartientBusinessUnitDto.cs | 20 - ...llaborateurAppartientBusinessUnitSqlDto.cs | 21 + .../CollaborateurCollaboreProjetDto.cs | 21 - .../CollaborateurCollaboreProjetSqlDto.cs | 23 ++ .../CollaborateurDto.cs | 32 -- .../CollaborateurEffectuePeriodeEssaiDto.cs | 20 - ...CollaborateurEffectuePeriodeEssaiSqlDto.cs | 21 + .../CollaborateurEstFonctionDto.cs | 20 - .../CollaborateurEstFonctionSqlDto.cs | 21 + .../CollaborateurSqlDto.cs | 44 ++ .../EnumGenre.cs | 2 +- .../EnumIssue.cs | 2 +- .../EnumStatut.cs | 2 +- .../FonctionDto.cs | 15 - .../FonctionSqlDto.cs | 21 + .../PeriodeEssaiDto.cs | 19 - .../PeriodeEssaiSqlDto.cs | 29 ++ .../ProjetDto.cs | 19 - .../ProjetSqlDto.cs | 29 ++ .../ProjetUtiliseTechnologieDto.cs | 20 - .../ProjetUtiliseTechnologieSqlDto.cs | 21 + .../ReferencementDto.cs | 23 -- .../ReferencementSqlDto.cs | 27 ++ .../SiteDeveloppeProjetDto.cs | 20 - .../SiteDeveloppeProjetSqlDto.cs | 21 + .../SiteDto.cs | 17 - .../SiteSqlDto.cs | 25 ++ .../TechnologieDto.cs | 15 - .../TechnologieSqlDto.cs | 19 + 34 files changed, 761 insertions(+), 296 deletions(-) delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/AgenceDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/AgenceSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/BusinessUnitDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/BusinessUnitSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurAppartientBusinessUnitDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurAppartientBusinessUnitSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurCollaboreProjetDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurCollaboreProjetSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEffectuePeriodeEssaiDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEffectuePeriodeEssaiSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEstFonctionDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEstFonctionSqlDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/FonctionDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/FonctionSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/PeriodeEssaiDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/PeriodeEssaiSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetUtiliseTechnologieDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetUtiliseTechnologieSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ReferencementDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ReferencementSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDeveloppeProjetDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDeveloppeProjetSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/TechnologieDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/TechnologieSqlDto.cs diff --git a/.gitignore b/.gitignore index 1998960..67ad52c 100644 --- a/.gitignore +++ b/.gitignore @@ -399,3 +399,393 @@ FodyWeavers.xsd # Local History for Visual Studio Code .history/ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# 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 Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# 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 + +# Nuget personal access tokens and Credentials +# nuget.config + +# 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 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/ + +# 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 +.idea/ +*.sln.iml + +.Development diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/AgenceDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/AgenceDto.cs deleted file mode 100644 index b556e9d..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/AgenceDto.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System.Diagnostics.CodeAnalysis; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class AgenceDto - { - private Guid Id { get; set; } - private string Name { get; set; } - - [ExcludeFromCodeCoverage] - private AgenceDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/AgenceSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/AgenceSqlDto.cs new file mode 100644 index 0000000..7914345 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/AgenceSqlDto.cs @@ -0,0 +1,22 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class AgenceSqlDto + { + public Guid Id { get; set; } + public string Name { get; set; } + + [ExcludeFromCodeCoverage] + + private AgenceSqlDto() + { + } + + public AgenceSqlDto(Guid id, string name) + { + Id = id; + Name = name; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/BusinessUnitDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/BusinessUnitDto.cs deleted file mode 100644 index 0b943f7..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/BusinessUnitDto.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System.Diagnostics.CodeAnalysis; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class BusinessUnitDto - { - private Guid Id { get; set; } - private string Name { get; set; } - private Guid AgenceId { get; set; } - - - [ExcludeFromCodeCoverage] - private BusinessUnitDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/BusinessUnitSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/BusinessUnitSqlDto.cs new file mode 100644 index 0000000..04b205b --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/BusinessUnitSqlDto.cs @@ -0,0 +1,24 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class BusinessUnitSqlDto + { + public Guid Id { get; set; } + public string Name { get; set; } + public Guid AgenceId { get; set; } + + + [ExcludeFromCodeCoverage] + private BusinessUnitSqlDto() + { + } + + public BusinessUnitSqlDto(Guid id, string name, Guid agenceId) + { + Id = id; + Name = name; + AgenceId = agenceId; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurAppartientBusinessUnitDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurAppartientBusinessUnitDto.cs deleted file mode 100644 index 6e563fd..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurAppartientBusinessUnitDto.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace espacecollab.backend.infrastructure.sql.dtos.Associations -{ - public class CollaborateurAppartientBusinessUnitDto - { - private Guid CollaborateurId { get; set; } - private Guid BusinessUnitId { get; set; } - - [ExcludeFromCodeCoverage] - private CollaborateurAppartientBusinessUnitDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurAppartientBusinessUnitSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurAppartientBusinessUnitSqlDto.cs new file mode 100644 index 0000000..c9858c5 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurAppartientBusinessUnitSqlDto.cs @@ -0,0 +1,21 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos.Associations +{ + public class CollaborateurAppartientBusinessUnitSqlDto + { + public Guid CollaborateurId { get; set; } + public Guid BusinessUnitId { get; set; } + + [ExcludeFromCodeCoverage] + private CollaborateurAppartientBusinessUnitSqlDto() + { + } + + public CollaborateurAppartientBusinessUnitSqlDto(Guid collaborateurId, Guid businessUnitId) + { + CollaborateurId = collaborateurId; + BusinessUnitId = businessUnitId; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurCollaboreProjetDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurCollaboreProjetDto.cs deleted file mode 100644 index 2ea983a..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurCollaboreProjetDto.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class CollaborateurCollaboreProjetDto - { - private Guid CollaborateurId { get; set; } - private Guid ProjetId { get; set; } - private bool IsManager { get; set; } - - [ExcludeFromCodeCoverage] - private CollaborateurCollaboreProjetDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurCollaboreProjetSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurCollaboreProjetSqlDto.cs new file mode 100644 index 0000000..ad03f99 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurCollaboreProjetSqlDto.cs @@ -0,0 +1,23 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class CollaborateurCollaboreProjetSqlDto + { + public Guid CollaborateurId { get; set; } + public Guid ProjetId { get; set; } + public bool IsManager { get; set; } + + [ExcludeFromCodeCoverage] + private CollaborateurCollaboreProjetSqlDto() + { + } + + public CollaborateurCollaboreProjetSqlDto(Guid collaborateurId, Guid projetId, bool isManager) + { + CollaborateurId = collaborateurId; + ProjetId = projetId; + IsManager = isManager; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurDto.cs deleted file mode 100644 index bb09b78..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurDto.cs +++ /dev/null @@ -1,32 +0,0 @@ -using espacecollab.backend.infrastructure.sql.dtos.Enums; -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class CollaborateurDto - { - private Guid Id { get; set; } - private string Name { get; set; } - private string FirstName { get; set; } - private DateTime BirthDate { get; set; } - private EnumGenre Gender { get; set; } - private EnumStatut Status { get; set; } - private int ChildrenNumber { get; set; } - private string Address { get; set; } - private string Telephone { get; set; } - private string PersonalMail { get; set; } - private string ApsideMail { get; set; } - private DateTime ResignationDate { get; set; } - private Guid ReferrerId { get; set; } - - [ExcludeFromCodeCoverage] - private CollaborateurDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEffectuePeriodeEssaiDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEffectuePeriodeEssaiDto.cs deleted file mode 100644 index 8015c76..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEffectuePeriodeEssaiDto.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace espacecollab.backend.infrastructure.sql.dtos.Associations -{ - public class CollaborateurEffectuePeriodeEssaiDto - { - private Guid CollaborateurId { get; set; } - private Guid PeriodeEssaiId { get; set;} - - [ExcludeFromCodeCoverage] - private CollaborateurEffectuePeriodeEssaiDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEffectuePeriodeEssaiSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEffectuePeriodeEssaiSqlDto.cs new file mode 100644 index 0000000..bfe853b --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEffectuePeriodeEssaiSqlDto.cs @@ -0,0 +1,21 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos.Associations +{ + public class CollaborateurEffectuePeriodeEssaiSqlDto + { + public Guid CollaborateurId { get; set; } + public Guid PeriodeEssaiId { get; set;} + + [ExcludeFromCodeCoverage] + private CollaborateurEffectuePeriodeEssaiSqlDto() + { + } + + public CollaborateurEffectuePeriodeEssaiSqlDto(Guid collaborateurId, Guid periodeEssaiId) + { + CollaborateurId = collaborateurId; + PeriodeEssaiId = periodeEssaiId; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEstFonctionDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEstFonctionDto.cs deleted file mode 100644 index 2d58d06..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEstFonctionDto.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace espacecollab.backend.infrastructure.sql.dtos.Associations -{ - public class CollaborateurEstFonctionDto - { - private Guid CollaborateurId { get; set; } - private Guid FonctionId { get; set;} - - [ExcludeFromCodeCoverage] - private CollaborateurEstFonctionDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEstFonctionSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEstFonctionSqlDto.cs new file mode 100644 index 0000000..be2ecde --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEstFonctionSqlDto.cs @@ -0,0 +1,21 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos.Associations +{ + public class CollaborateurEstFonctionSqlDto + { + public Guid CollaborateurId { get; set; } + public Guid FonctionId { get; set;} + + [ExcludeFromCodeCoverage] + private CollaborateurEstFonctionSqlDto() + { + } + + public CollaborateurEstFonctionSqlDto(Guid collaborateurId, Guid fonctionId) + { + CollaborateurId = collaborateurId; + FonctionId = fonctionId; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurSqlDto.cs new file mode 100644 index 0000000..b7917d2 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurSqlDto.cs @@ -0,0 +1,44 @@ +using espacecollab.backend.infrastructure.sql.dtos.Enums; +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class CollaborateurSqlDto + { + public Guid Id { get; set; } + public string Name { get; set; } + public string FirstName { get; set; } + public DateTime BirthDate { get; set; } + public EnumGenre Gender { get; set; } + public EnumStatut Status { get; set; } + public int ChildrenNumber { get; set; } + public string Address { get; set; } + public string Telephone { get; set; } + public string PersonalMail { get; set; } + public string ApsideMail { get; set; } + public DateTime ResignationDate { get; set; } + public Guid ReferrerId { get; set; } + + [ExcludeFromCodeCoverage] + private CollaborateurSqlDto() + { + } + + public CollaborateurSqlDto(Guid id, string name, string firstName, DateTime birthDate, EnumGenre gender, EnumStatut status, int childrenNumber, string address, string telephone, string personalMail, string apsideMail, DateTime resignationDate, Guid referrerId) + { + Id = id; + Name = name; + FirstName = firstName; + BirthDate = birthDate; + Gender = gender; + Status = status; + ChildrenNumber = childrenNumber; + Address = address; + Telephone = telephone; + PersonalMail = personalMail; + ApsideMail = apsideMail; + ResignationDate = resignationDate; + ReferrerId = referrerId; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumGenre.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumGenre.cs index ceeb2da..83c9bef 100644 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumGenre.cs +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumGenre.cs @@ -1,6 +1,6 @@ namespace espacecollab.backend.infrastructure.sql.dtos.Enums { - enum EnumGenre + public enum EnumGenre { MASCULIN, FEMININ, diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumIssue.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumIssue.cs index 1dd3356..faf7bd1 100644 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumIssue.cs +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumIssue.cs @@ -1,6 +1,6 @@ namespace espacecollab.backend.infrastructure.sql.dtos { - enum EnumIssue + public enum EnumIssue { VALIDEE, PROLONGEE_COLLAB, diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumStatut.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumStatut.cs index 37fbd1a..2db3de5 100644 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumStatut.cs +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumStatut.cs @@ -1,6 +1,6 @@ namespace espacecollab.backend.infrastructure.sql.dtos.Enums { - enum EnumStatut + public enum EnumStatut { CADRE, NONCADRE, diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/FonctionDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/FonctionDto.cs deleted file mode 100644 index b1e8212..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/FonctionDto.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System.Diagnostics.CodeAnalysis; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class FonctionDto - { - private Guid Id { get; set; } - private string Name { get; set; } - - [ExcludeFromCodeCoverage] - private FonctionDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/FonctionSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/FonctionSqlDto.cs new file mode 100644 index 0000000..748ad5f --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/FonctionSqlDto.cs @@ -0,0 +1,21 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class FonctionSqlDto + { + public Guid Id { get; set; } + public string Name { get; set; } + + [ExcludeFromCodeCoverage] + private FonctionSqlDto() + { + } + + public FonctionSqlDto(Guid id, string name) + { + Id = id; + Name = name; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/PeriodeEssaiDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/PeriodeEssaiDto.cs deleted file mode 100644 index 23e145a..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/PeriodeEssaiDto.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System.Diagnostics.CodeAnalysis; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class PeriodeEssaiDto - { - private Guid Id { get; set; } - private DateTime StartingDate { get; set; } - private DateTime PlannedEndingDate { get; set; } - private DateTime RealEndingDate { get; set; } - private string Comment { get; set; } - private EnumIssue Issue { get; set; } - - [ExcludeFromCodeCoverage] - private PeriodeEssaiDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/PeriodeEssaiSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/PeriodeEssaiSqlDto.cs new file mode 100644 index 0000000..118637a --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/PeriodeEssaiSqlDto.cs @@ -0,0 +1,29 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class PeriodeEssaiSqlDto + { + public Guid Id { get; set; } + public DateTime StartingDate { get; set; } + public DateTime PlannedEndingDate { get; set; } + public DateTime RealEndingDate { get; set; } + public string Comment { get; set; } + public EnumIssue Issue { get; set; } + + [ExcludeFromCodeCoverage] + private PeriodeEssaiSqlDto() + { + } + + public PeriodeEssaiSqlDto(Guid id, DateTime startingDate, DateTime plannedEndingDate, DateTime realEndingDate, string comment, EnumIssue issue) + { + Id = id; + StartingDate = startingDate; + PlannedEndingDate = plannedEndingDate; + RealEndingDate = realEndingDate; + Comment = comment; + Issue = issue; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetDto.cs deleted file mode 100644 index 6dc6f9d..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetDto.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System.Diagnostics.CodeAnalysis; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class ProjetDto - { - private Guid Id { get; set; } - private string Name { get; set; } - private string Client { get; set; } - private string Description { get; set; } - private DateTime StartingDate { get; set; } - private DateTime EndingDate { get; set; } - - [ExcludeFromCodeCoverage] - private ProjetDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetSqlDto.cs new file mode 100644 index 0000000..11080af --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetSqlDto.cs @@ -0,0 +1,29 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class ProjetSqlDto + { + public Guid Id { get; set; } + public string Name { get; set; } + public string Client { get; set; } + public string Description { get; set; } + public DateTime StartingDate { get; set; } + public DateTime EndingDate { get; set; } + + [ExcludeFromCodeCoverage] + private ProjetSqlDto() + { + } + + public ProjetSqlDto(Guid id, string name, string client, string description, DateTime startingDate, DateTime endingDate) + { + Id = id; + Name = name; + Client = client; + Description = description; + StartingDate = startingDate; + EndingDate = endingDate; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetUtiliseTechnologieDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetUtiliseTechnologieDto.cs deleted file mode 100644 index 4bd4f0b..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetUtiliseTechnologieDto.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class ProjetUtiliseTechnologieDto - { - private Guid ProjetId { get; set; } - private Guid TechnologieId { get; set; } - - [ExcludeFromCodeCoverage] - private ProjetUtiliseTechnologieDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetUtiliseTechnologieSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetUtiliseTechnologieSqlDto.cs new file mode 100644 index 0000000..e8bd1d6 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetUtiliseTechnologieSqlDto.cs @@ -0,0 +1,21 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class ProjetUtiliseTechnologieSqlDto + { + public Guid ProjetId { get; set; } + public Guid TechnologieId { get; set; } + + [ExcludeFromCodeCoverage] + private ProjetUtiliseTechnologieSqlDto() + { + } + + public ProjetUtiliseTechnologieSqlDto(Guid projetId, Guid technologieId) + { + ProjetId = projetId; + TechnologieId = technologieId; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ReferencementDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ReferencementDto.cs deleted file mode 100644 index ed4a3dd..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ReferencementDto.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class ReferencementDto - { - private Guid Id { get; set; } - private DateTime StartingDate { get; set; } - private DateTime EndingDate { get; set; } - private Guid ReferredId { get; set; } - private Guid ReferrerId { get; set; } - - [ExcludeFromCodeCoverage] - private ReferencementDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ReferencementSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ReferencementSqlDto.cs new file mode 100644 index 0000000..06e3253 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ReferencementSqlDto.cs @@ -0,0 +1,27 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class ReferencementSqlDto + { + public Guid Id { get; set; } + public DateTime StartingDate { get; set; } + public DateTime EndingDate { get; set; } + public Guid ReferredId { get; set; } + public Guid ReferrerId { get; set; } + + [ExcludeFromCodeCoverage] + private ReferencementSqlDto() + { + } + + public ReferencementSqlDto(Guid id, DateTime startingDate, DateTime endingDate, Guid referredId, Guid referrerId) + { + Id = id; + StartingDate = startingDate; + EndingDate = endingDate; + ReferredId = referredId; + ReferrerId = referrerId; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDeveloppeProjetDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDeveloppeProjetDto.cs deleted file mode 100644 index 6d6daf3..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDeveloppeProjetDto.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class SiteDeveloppeProjetDto - { - private Guid SiteId { get; set; } - private Guid ProjetId { get; set; } - - [ExcludeFromCodeCoverage] - private SiteDeveloppeProjetDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDeveloppeProjetSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDeveloppeProjetSqlDto.cs new file mode 100644 index 0000000..4d03c62 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDeveloppeProjetSqlDto.cs @@ -0,0 +1,21 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class SiteDeveloppeProjetSqlDto + { + public Guid SiteId { get; set; } + public Guid ProjetId { get; set; } + + [ExcludeFromCodeCoverage] + private SiteDeveloppeProjetSqlDto() + { + } + + public SiteDeveloppeProjetSqlDto(Guid siteId, Guid projetId) + { + SiteId = siteId; + ProjetId = projetId; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDto.cs deleted file mode 100644 index 5b40c41..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDto.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System.Diagnostics.CodeAnalysis; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class SiteDto - { - private Guid Id { get; set; } - private string Name { get; set; } - private string Address { get; set; } - private Guid BusinessUnitId { get; set; } - - [ExcludeFromCodeCoverage] - private SiteDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteSqlDto.cs new file mode 100644 index 0000000..2962b45 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteSqlDto.cs @@ -0,0 +1,25 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class SiteSqlDto + { + public Guid Id { get; set; } + public string Name { get; set; } + public string Address { get; set; } + public Guid BusinessUnitId { get; set; } + + [ExcludeFromCodeCoverage] + private SiteSqlDto() + { + } + + public SiteSqlDto(Guid id, string name, string address, Guid businessUnitId) + { + Id = id; + Name = name; + Address = address; + BusinessUnitId = businessUnitId; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/TechnologieDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/TechnologieDto.cs deleted file mode 100644 index 4c43c83..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/TechnologieDto.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System.Diagnostics.CodeAnalysis; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class TechnologieDto - { - private Guid Id { get; set; } - private string Name { get; set; } - - [ExcludeFromCodeCoverage] - private TechnologieDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/TechnologieSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/TechnologieSqlDto.cs new file mode 100644 index 0000000..73f5028 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/TechnologieSqlDto.cs @@ -0,0 +1,19 @@ +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class TechnologieSqlDto + { + public Guid Id { get; set; } + public string Name { get; set; } + + [ExcludeFromCodeCoverage] + private TechnologieSqlDto() + { + } + + public TechnologieSqlDto(Guid id, string name) + { + Id = id; + Name = name; + } + } +}