public void DeleteEquipmentFromCurrentBooking() { Logic.Booking bk = Book.GetById(2); Equipment eq = new Equipment(2, 1); int nr = bk._equipment.Count; Book.DeleteEquipmentFromBooking(eq, bk); bk = Book.GetById(2); int newnr = bk._equipment.Count; Assert.AreEqual(nr - 1, newnr); }
public void DeleteEquipmentFromBooking(Equipment eq, Booking bk) { bookData.DeleteEquipmentFromBooking(eq, bk); BookRep.DeleteEquipmentFromBooking(eq, bk); }