public void DeleteMovieItemOnRemove() { var item = Avatar.AddItem(); SessionHelper.CommitSession(Session, null); Avatar.Items.Remove(item); Assert.IsTrue(item.IsDeleted); }
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); }
public void MovieAddItem_CheckPrice() { Assert.AreEqual(100, Avatar.AddItem(MovieItemFormat.DVD, 100).SellingPrice); }