public void GetAlsoRentedItemsTest() { RentItClient target = new RentItClient(); const int Id = 1; MediaItems actual = target.GetAlsoRentedItems(Id); Assert.IsTrue(actual.Books.ToList().Exists(x => x.Id == 2 && x.Title == "House of Leaves")); Assert.IsTrue(actual.Albums.ToList().Exists(x => x.Id == 10 && x.Title == "The Man-Machine")); Assert.IsTrue(actual.Songs.Count() == 0); }
public void GetAlsoRentedItemsExceptionTest() { RentItClient target = new RentItClient(); target.GetAlsoRentedItems(-3); }