public void TestFindAll() { // ARRANGE var underTest = new ComptesManagerImpl_Memory(); var expected = 3; // Number of existings accounts // ACT var actual = underTest.FindAll(); //foreach (var item in actual) //{ // Console.WriteLine(item.Proprietaire); //} // ASSERT Assert.AreEqual(expected, ((IList <Compte>)actual).Count); }
public void FindByIdTest() { // ARRANGE var underTest = new ComptesManagerImpl_Memory(); var expected = new Compte { Numero = "C1000", Proprietaire = "Zakaria", Solde = 1000M }; var id = "C1000"; // ACT var actual = underTest.FindById(id); //foreach (var item in actual) //{ // Console.WriteLine(item.Proprietaire); //} // ASSERT Assert.AreEqual(expected, actual); }
public void TestMethod1() { //ARRANGE var underTest = new ComptesManagerImpl_Memory(); var expected = new Compte { Numero = "C1000", Proprietaire = "Zakaria", Solde = 1000M }; // number of existings accounts var id = "C1000"; //ACT var actual = underTest.FindById(id); /*foreach (var item in actual) * { * Console.WriteLine(item.Proprietaire); * }*/ //ASSERT Assert.AreEqual(expected, actual); }