public void FindById_Degrade() { //ARRANGE var id = "Z100"; var underTest = new ComptesRepositoryImpl_EF(); //ACT var actual = underTest.FindById(id); //ASSERT Assert.IsNull(actual); }
public void TestFindById_Degrade() { //ARRANGE var id = "Z100"; var underTest = new ComptesRepositoryImpl_EF(); //ACT var actual = underTest.FindById(id); //ASSERT //Si on arrive ici avec success, ce que c'est bon Assert.IsNull(actual); }
public void OuvrirCompte() { //ARRANGE var c = new Compte { Numero = "E200", Proprietaire = "Amine", Solde = 200M }; var underTest = new ComptesRepositoryImpl_EF(); //ACT underTest.OuvrirCompte(c); //ASSERT }
public void TestOuvrirCompte() { //ARRANGE var c = new Compte { Numero = "C100", Proprietaire = "Mohamed Amin", Solde = 100M }; var underTest = new ComptesRepositoryImpl_EF(); //ACT underTest.OuvrirCompte(c); //ASSERT //SI on arrive ici avec succès, c'est que c'est bon .. }
public void TestOuvrirCompte() { //ARRANGE var c = new Compte { Numero = "C200", Proprietaire = "Zakaria", Solde = 200M }; var underTest = new ComptesRepositoryImpl_EF(); //ACT underTest.OuvrirCompte(c); //ASSERT //Si on arrive ici avec success, ce que c'est bon }
public void FindById_Nominal() { var id = "C100"; //ARRANGE var c = new Compte { Numero = "C100", Proprietaire = "Khalil", Solde = 100M }; var underTest = new ComptesRepositoryImpl_EF(); //ACT var actual = underTest.FindById(id); //ASSERT Assert.AreEqual(c, actual); }
public void TestFindById() { var id = "C100"; //ARRANGE var expected = new Compte { Numero = "C100", Proprietaire = "Mohamed Amin", Solde = 100M }; var underTest = new ComptesRepositoryImpl_EF(); //ACT var actual = underTest.FindById(id); //ASSERT Assert.AreEqual(expected, actual); }
public void TestFindById_Nominal() { var id = "C100"; //ARRANGE var expeced = new Compte { Numero = "C100", Proprietaire = "Mohamed Amine", Solde = 100M }; var underTest = new ComptesRepositoryImpl_EF(); //ACT var actual = underTest.FindById(id); //ASSERT //Si on arrive ici avec success, ce que c'est bon Assert.AreEqual(expeced, actual); }
public void TestOuvrirCompte() { //ARRANGE var c = new Compte { Numero = "C100", Proprietaire = "Med Amine", Solde = 100M }; var underTest = new ComptesRepositoryImpl_EF(); //ACT underTest.OuvrirCompte(c); //ASSERT // Act ne retourne rien si c'est bon //} //[TestMethod] //public void TestFindById() //{ // //ARRANGE // var id = "C100"; // var expected = new Compte { Numero = "C100", Proprietaire = "Med Amine", Solde = 100M }; // var underTest = new ComptesRepositoryImpl_EF(); // //ACT // var actual = underTest.RecupCompteById(id); // //ASSERT // Assert.AreEqual(expected,actual); //} }