Exemplo n.º 1
0
        public void OrderLinePropertiesSetTest()
        {
            Movie mov = new Movie() { ID = 0, Title = "T**s Galore", Genre = FakeDB.GetInstance().FindGenreByName("Comedy"), ImageURL = null, TrailerURL = null, Price = (59.99), Year = 1993 };
            OrderLine line = new OrderLine(mov, 1);

            Assert.AreEqual(line.Movie, mov);
            Assert.AreEqual(line.Amount,1);
        }
 public OrderLine(Movie movie, uint amount)
 {
     Movie = movie;
     Amount = amount;
 }