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"); + } } }