public void AjouterNoteFrais() { ICommercial commercial = new Commercial("Tech", "Franck", 25, 'A'); Note noteOne, noteTwo; noteOne = new Note(new DateTime(2020, 10, 23), commercial); noteTwo = new Note(new DateTime(2020, 10, 24), commercial); Assert.AreEqual(2, commercial.GetNoteDeFrais().Count); }
public void Ajouter_Note_To_Commercial() { ServiceCommercial sc = new ServiceCommercial(); ICommercial commercial = new Commercial("Alan", "Bod", 8, 'A'); sc.AjouterCommercial(commercial); sc.AjouterNote(commercial, new DateTime(2020, 10, 22), 250); sc.AjouterNote(commercial, new DateTime(2020, 10, 22), 35d); sc.AjouterNote(commercial, new DateTime(2020, 10, 22), 80, 2); Assert.AreEqual(3, commercial.GetNoteDeFrais().Count); }