コード例 #1
0
ファイル: UnitTest1.cs プロジェクト: CSondergaard/Diving2000
        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);
        }
コード例 #2
0
 public void DeleteEquipmentFromBooking(Equipment eq, Booking bk)
 {
     bookData.DeleteEquipmentFromBooking(eq, bk);
     BookRep.DeleteEquipmentFromBooking(eq, bk);
 }