From 978cfe6028069f231b4347bee67dcaef305f82c1 Mon Sep 17 00:00:00 2001 From: hulivet1 Date: Fri, 7 Oct 2022 09:12:28 +0200 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20de=20l'arboressance=20du=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Code/CI_CONSECO.sln | 37 ++++++++++++++++++ Code/ConsEco.sln | 43 +++++++++++++++++++++ Code/IHM/App.xaml | 9 +++++ Code/IHM/App.xaml.cs | 17 ++++++++ Code/IHM/AssemblyInfo.cs | 10 +++++ Code/IHM/IHM.csproj | 10 +++++ Code/IHM/MainWindow.xaml | 12 ++++++ Code/IHM/MainWindow.xaml.cs | 28 ++++++++++++++ Code/Model/Class1.cs | 7 ++++ Code/Model/Model.csproj | 9 +++++ Code/TestFonctionnel/Program.cs | 2 + Code/TestFonctionnel/TestFonctionnel.csproj | 10 +++++ Code/TestsUnitaires/TestsUnitaires.csproj | 24 ++++++++++++ Code/TestsUnitaires/UnitTest1.cs | 11 ++++++ Code/TestsUnitaires/Usings.cs | 1 + 15 files changed, 230 insertions(+) create mode 100644 Code/CI_CONSECO.sln create mode 100644 Code/ConsEco.sln create mode 100644 Code/IHM/App.xaml create mode 100644 Code/IHM/App.xaml.cs create mode 100644 Code/IHM/AssemblyInfo.cs create mode 100644 Code/IHM/IHM.csproj create mode 100644 Code/IHM/MainWindow.xaml create mode 100644 Code/IHM/MainWindow.xaml.cs create mode 100644 Code/Model/Class1.cs create mode 100644 Code/Model/Model.csproj create mode 100644 Code/TestFonctionnel/Program.cs create mode 100644 Code/TestFonctionnel/TestFonctionnel.csproj create mode 100644 Code/TestsUnitaires/TestsUnitaires.csproj create mode 100644 Code/TestsUnitaires/UnitTest1.cs create mode 100644 Code/TestsUnitaires/Usings.cs diff --git a/Code/CI_CONSECO.sln b/Code/CI_CONSECO.sln new file mode 100644 index 0000000..90db61c --- /dev/null +++ b/Code/CI_CONSECO.sln @@ -0,0 +1,37 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.2.32616.157 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Model", "Model\Model.csproj", "{ACFA83F8-98C8-43AE-9328-B3F751098FFA}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFonctionnel", "TestFonctionnel\TestFonctionnel.csproj", "{7AC4F84F-1124-4EC1-BF38-17F3F4FBEB3E}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestsUnitaires", "TestsUnitaires\TestsUnitaires.csproj", "{B1AE713C-B5DE-4E81-A33F-818AAD0548A7}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {ACFA83F8-98C8-43AE-9328-B3F751098FFA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ACFA83F8-98C8-43AE-9328-B3F751098FFA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ACFA83F8-98C8-43AE-9328-B3F751098FFA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ACFA83F8-98C8-43AE-9328-B3F751098FFA}.Release|Any CPU.Build.0 = Release|Any CPU + {7AC4F84F-1124-4EC1-BF38-17F3F4FBEB3E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7AC4F84F-1124-4EC1-BF38-17F3F4FBEB3E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7AC4F84F-1124-4EC1-BF38-17F3F4FBEB3E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7AC4F84F-1124-4EC1-BF38-17F3F4FBEB3E}.Release|Any CPU.Build.0 = Release|Any CPU + {B1AE713C-B5DE-4E81-A33F-818AAD0548A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B1AE713C-B5DE-4E81-A33F-818AAD0548A7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B1AE713C-B5DE-4E81-A33F-818AAD0548A7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B1AE713C-B5DE-4E81-A33F-818AAD0548A7}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {997F299E-EAB1-4F11-AC37-BCC0B7D63CA4} + EndGlobalSection +EndGlobal diff --git a/Code/ConsEco.sln b/Code/ConsEco.sln new file mode 100644 index 0000000..ad4e961 --- /dev/null +++ b/Code/ConsEco.sln @@ -0,0 +1,43 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.2.32616.157 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IHM", "IHM\IHM.csproj", "{355FC972-9C0D-4CBD-8003-EFBDACA7CFFF}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Model", "Model\Model.csproj", "{ACFA83F8-98C8-43AE-9328-B3F751098FFA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestFonctionnel", "TestFonctionnel\TestFonctionnel.csproj", "{7AC4F84F-1124-4EC1-BF38-17F3F4FBEB3E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestsUnitaires", "TestsUnitaires\TestsUnitaires.csproj", "{B1AE713C-B5DE-4E81-A33F-818AAD0548A7}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {355FC972-9C0D-4CBD-8003-EFBDACA7CFFF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {355FC972-9C0D-4CBD-8003-EFBDACA7CFFF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {355FC972-9C0D-4CBD-8003-EFBDACA7CFFF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {355FC972-9C0D-4CBD-8003-EFBDACA7CFFF}.Release|Any CPU.Build.0 = Release|Any CPU + {ACFA83F8-98C8-43AE-9328-B3F751098FFA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ACFA83F8-98C8-43AE-9328-B3F751098FFA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ACFA83F8-98C8-43AE-9328-B3F751098FFA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ACFA83F8-98C8-43AE-9328-B3F751098FFA}.Release|Any CPU.Build.0 = Release|Any CPU + {7AC4F84F-1124-4EC1-BF38-17F3F4FBEB3E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7AC4F84F-1124-4EC1-BF38-17F3F4FBEB3E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7AC4F84F-1124-4EC1-BF38-17F3F4FBEB3E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7AC4F84F-1124-4EC1-BF38-17F3F4FBEB3E}.Release|Any CPU.Build.0 = Release|Any CPU + {B1AE713C-B5DE-4E81-A33F-818AAD0548A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B1AE713C-B5DE-4E81-A33F-818AAD0548A7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B1AE713C-B5DE-4E81-A33F-818AAD0548A7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B1AE713C-B5DE-4E81-A33F-818AAD0548A7}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {997F299E-EAB1-4F11-AC37-BCC0B7D63CA4} + EndGlobalSection +EndGlobal diff --git a/Code/IHM/App.xaml b/Code/IHM/App.xaml new file mode 100644 index 0000000..373f0ad --- /dev/null +++ b/Code/IHM/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/Code/IHM/App.xaml.cs b/Code/IHM/App.xaml.cs new file mode 100644 index 0000000..aff7815 --- /dev/null +++ b/Code/IHM/App.xaml.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using System.Windows; + +namespace IHM +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/Code/IHM/AssemblyInfo.cs b/Code/IHM/AssemblyInfo.cs new file mode 100644 index 0000000..74087a1 --- /dev/null +++ b/Code/IHM/AssemblyInfo.cs @@ -0,0 +1,10 @@ +using System.Windows; + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] diff --git a/Code/IHM/IHM.csproj b/Code/IHM/IHM.csproj new file mode 100644 index 0000000..7dc11f9 --- /dev/null +++ b/Code/IHM/IHM.csproj @@ -0,0 +1,10 @@ + + + + WinExe + net6.0-windows + enable + true + + + diff --git a/Code/IHM/MainWindow.xaml b/Code/IHM/MainWindow.xaml new file mode 100644 index 0000000..d796ffe --- /dev/null +++ b/Code/IHM/MainWindow.xaml @@ -0,0 +1,12 @@ + + + + + diff --git a/Code/IHM/MainWindow.xaml.cs b/Code/IHM/MainWindow.xaml.cs new file mode 100644 index 0000000..9ea40a2 --- /dev/null +++ b/Code/IHM/MainWindow.xaml.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace IHM +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); + } + } +} diff --git a/Code/Model/Class1.cs b/Code/Model/Class1.cs new file mode 100644 index 0000000..34183dd --- /dev/null +++ b/Code/Model/Class1.cs @@ -0,0 +1,7 @@ +namespace Model +{ + public class Class1 + { + + } +} \ No newline at end of file diff --git a/Code/Model/Model.csproj b/Code/Model/Model.csproj new file mode 100644 index 0000000..bafd05b --- /dev/null +++ b/Code/Model/Model.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/Code/TestFonctionnel/Program.cs b/Code/TestFonctionnel/Program.cs new file mode 100644 index 0000000..83fa4f4 --- /dev/null +++ b/Code/TestFonctionnel/Program.cs @@ -0,0 +1,2 @@ +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, World!"); diff --git a/Code/TestFonctionnel/TestFonctionnel.csproj b/Code/TestFonctionnel/TestFonctionnel.csproj new file mode 100644 index 0000000..40c60dd --- /dev/null +++ b/Code/TestFonctionnel/TestFonctionnel.csproj @@ -0,0 +1,10 @@ + + + + Exe + net6.0 + enable + enable + + + diff --git a/Code/TestsUnitaires/TestsUnitaires.csproj b/Code/TestsUnitaires/TestsUnitaires.csproj new file mode 100644 index 0000000..89d8ebd --- /dev/null +++ b/Code/TestsUnitaires/TestsUnitaires.csproj @@ -0,0 +1,24 @@ + + + + net6.0 + enable + enable + + false + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + diff --git a/Code/TestsUnitaires/UnitTest1.cs b/Code/TestsUnitaires/UnitTest1.cs new file mode 100644 index 0000000..8813a19 --- /dev/null +++ b/Code/TestsUnitaires/UnitTest1.cs @@ -0,0 +1,11 @@ +namespace TestsUnitaires +{ + public class UnitTest1 + { + [Fact] + public void Test1() + { + + } + } +} \ No newline at end of file diff --git a/Code/TestsUnitaires/Usings.cs b/Code/TestsUnitaires/Usings.cs new file mode 100644 index 0000000..8c927eb --- /dev/null +++ b/Code/TestsUnitaires/Usings.cs @@ -0,0 +1 @@ +global using Xunit; \ No newline at end of file