From f9cbc6994b66c61d3c3a131e89a47c64464ec374 Mon Sep 17 00:00:00 2001 From: hulivet1 Date: Wed, 26 Oct 2022 13:26:41 +0200 Subject: [PATCH] Test Connexion ok mais pas a l'iut --- Code/Model/Manager.cs | 2 +- Code/TestsUnitaires/TestUnitPgSQL.cs | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Code/Model/Manager.cs b/Code/Model/Manager.cs index ccd751b..47bb606 100644 --- a/Code/Model/Manager.cs +++ b/Code/Model/Manager.cs @@ -14,7 +14,7 @@ namespace Model public event PropertyChangedEventHandler? PropertyChanged; public IPersistanceManager Pers { get; private set; } - public string SelectedInscrits { get; private set; } + public string SelectedInscrits { get; set; } public Banque SelectedBanque { diff --git a/Code/TestsUnitaires/TestUnitPgSQL.cs b/Code/TestsUnitaires/TestUnitPgSQL.cs index 7b215a6..e65d998 100644 --- a/Code/TestsUnitaires/TestUnitPgSQL.cs +++ b/Code/TestsUnitaires/TestUnitPgSQL.cs @@ -10,7 +10,14 @@ namespace TestsUnitaires { public class TestUnitPgSQL { - Manager m = new Manager(new PersLinqToPgSQL()); + [Fact] + public void testLoadInscrit() + { + Manager m = new Manager(new PersLinqToPgSQL()); + //Assert.Null(m.SelectedBanque); + //m.LoadInscrit("lucasevard@gmail.com", "test"); + //Assert.Equal(m.SelectedInscrits, "00001"); + } } }