Update README & project
continuous-integration/drone/push Build is failing Details

pull/10/head
Louwar 2 years ago
parent 5401c52262
commit 4fcb50862c

@ -4,6 +4,28 @@ Ce projet a été réalisé durant les cours de Entity framework et Consommation
## Ma configuration ## Ma configuration
* .NET 6 en C# * .NET 6 en C#
## Utilisation
* Vous devez tirer la branche 'master'
## Respect des consignes
### API (*24 points*)
- [ ] Mise en place de toutes les opérations CRUD (*4 points*)
- [ ] API RESTful (respect des règles de routage, utilisation des bons status code ...) (*2 points*)
- [ ] Utilisation des fichiers configurations (*1 points*)
- [ ] Versionnage de l'api (avec versionnage de la doc) (*1 point*)
- [ ] Logs (*1 point*)
- [ ] Tests unitaires (*3 point*)
- [ ] Réalisation du client MAUI et liaison avec l'api (*4 point*)
- [ ] Liaison avec la base de données (*2 point*)
- [ ] Filtrage + Pagination des données (*1 point*)
- [ ] Propreté du code (Vous pouvez vous servir de sonarqube) (*2 point*)
- [ ] Dockerisation et Hébergement des API (CodeFirst) (*3 point*)
### Documentation (16 points)
- [ ] Le Readme (*4 points*)
- [ ] Schéma et description de l'architecture globale de l'application (1 schéma + lien entre partie , min 1 page) (*8 points*)
- [x] Merge request (*2 points*)
## Architecture ## Architecture
![Image clique droit](/Documentation/img/Architecture_du_projetV2.png) ![Image clique droit](/Documentation/img/Architecture_du_projetV2.png)

@ -1,5 +1,4 @@
using Model; using Model;
using static System.Net.Mime.MediaTypeNames;
namespace API.Dto namespace API.Dto
{ {

@ -0,0 +1,7 @@
namespace EFManager
{
public class DbDataManager
{
}
}

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

@ -1,5 +1,4 @@
using System.ComponentModel.DataAnnotations; 
namespace EFlib namespace EFlib
{ {
public class EFChampion public class EFChampion

@ -1,10 +1,4 @@
using System; namespace EFlib
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EFlib
{ {
internal class EFSkin internal class EFSkin
{ {

@ -1,10 +1,4 @@
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EFlib namespace EFlib
{ {

@ -1,9 +1,5 @@
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EFlib namespace EFlib
{ {

@ -29,6 +29,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StubLib", "Stubs\StubLib\St
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StubEF", "Stubs\StubEF\StubEF.csproj", "{17BA906E-798E-4E75-9D8F-D4CD8EDD7FAE}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StubEF", "Stubs\StubEF\StubEF.csproj", "{17BA906E-798E-4E75-9D8F-D4CD8EDD7FAE}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestManagerEF", "TestManagerEF\TestManagerEF.csproj", "{7F7A42B1-40CE-4F07-B724-E24E019EE3F2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EFManager", "EFManager\EFManager.csproj", "{BD56921C-2868-4754-84A5-6A88D7710CA2}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
@ -75,6 +79,14 @@ Global
{17BA906E-798E-4E75-9D8F-D4CD8EDD7FAE}.Debug|Any CPU.Build.0 = Debug|Any CPU {17BA906E-798E-4E75-9D8F-D4CD8EDD7FAE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{17BA906E-798E-4E75-9D8F-D4CD8EDD7FAE}.Release|Any CPU.ActiveCfg = Release|Any CPU {17BA906E-798E-4E75-9D8F-D4CD8EDD7FAE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{17BA906E-798E-4E75-9D8F-D4CD8EDD7FAE}.Release|Any CPU.Build.0 = Release|Any CPU {17BA906E-798E-4E75-9D8F-D4CD8EDD7FAE}.Release|Any CPU.Build.0 = Release|Any CPU
{7F7A42B1-40CE-4F07-B724-E24E019EE3F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7F7A42B1-40CE-4F07-B724-E24E019EE3F2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7F7A42B1-40CE-4F07-B724-E24E019EE3F2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7F7A42B1-40CE-4F07-B724-E24E019EE3F2}.Release|Any CPU.Build.0 = Release|Any CPU
{BD56921C-2868-4754-84A5-6A88D7710CA2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BD56921C-2868-4754-84A5-6A88D7710CA2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BD56921C-2868-4754-84A5-6A88D7710CA2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BD56921C-2868-4754-84A5-6A88D7710CA2}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
@ -86,6 +98,7 @@ Global
{5DEC05D8-59AA-4DD9-AD53-07A08C1EC0EC} = {3EADD82A-15CF-40CC-BF4F-82F5385676A5} {5DEC05D8-59AA-4DD9-AD53-07A08C1EC0EC} = {3EADD82A-15CF-40CC-BF4F-82F5385676A5}
{9807CE1D-F1CF-4CAE-9D03-CDCE14BC36F2} = {F4404CFB-A33D-448E-891C-2C8113B014E4} {9807CE1D-F1CF-4CAE-9D03-CDCE14BC36F2} = {F4404CFB-A33D-448E-891C-2C8113B014E4}
{17BA906E-798E-4E75-9D8F-D4CD8EDD7FAE} = {F4404CFB-A33D-448E-891C-2C8113B014E4} {17BA906E-798E-4E75-9D8F-D4CD8EDD7FAE} = {F4404CFB-A33D-448E-891C-2C8113B014E4}
{7F7A42B1-40CE-4F07-B724-E24E019EE3F2} = {3EADD82A-15CF-40CC-BF4F-82F5385676A5}
EndGlobalSection EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {92F3083D-793F-4552-8A9A-0AD6534159C9} SolutionGuid = {92F3083D-793F-4552-8A9A-0AD6534159C9}

@ -1,5 +1,4 @@
using System; namespace Model
namespace Model
{ {
public enum ChampionClass public enum ChampionClass
{ {

@ -0,0 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="3.1.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
</Project>

@ -0,0 +1,11 @@
namespace TestManagerEF
{
public class UnitTest1
{
[Fact]
public void Test1()
{
}
}
}

@ -0,0 +1 @@
global using Xunit;
Loading…
Cancel
Save