public void TestFindById_Degrade() { var Id = "Z100"; var UnderTest = new ComptesRepositoryImp_EF(); var Actual = UnderTest.FindById(Id); Assert.IsNull(Actual); }
public void TestFindById_Nominal() { var Id = "C2000"; var UnderTest = new ComptesRepositoryImp_EF(); var Excpected = new Compte() { Numero = "C2000", Proprietaire = "MohamedAmine", Solde = 1000M }; var Actual = UnderTest.FindById(Id); Assert.AreEqual(Excpected, Actual); }