Beispiel #1
0
        public void DeleteMovieItemOnRemove()
        {
            var item = Avatar.AddItem();

            SessionHelper.CommitSession(Session, null);
            Avatar.Items.Remove(item);
            Assert.IsTrue(item.IsDeleted);
        }
Beispiel #2
0
        public void TryDeleteItemWasInRent()
        {
            var item    = Avatar.AddItem();
            var receipt = Andrew.DoRent(new RentInfo(item));

            VideoRentDateTime.AddDays(3);
            Andrew.ReturnRents(receipt.Rents);
            SessionHelper.CommitSession(Session, null);
            if (item.AllowDelete)
            {
                item.Delete();
            }
            SessionHelper.CommitSession(Session, null);
        }
Beispiel #3
0
 public void MovieAddItem_CheckPrice()
 {
     Assert.AreEqual(100, Avatar.AddItem(MovieItemFormat.DVD, 100).SellingPrice);
 }