示例#1
0
        public void Order_line_properties_set_ok()
        {
            OrderLine orderLine = new OrderLine();
            Movie movie = new Movie() { Id = 1, Title = "Buller" };
            orderLine.Movie = movie;
            orderLine.Amount = 10;

            Assert.AreEqual(movie, orderLine.Movie);
            Assert.AreEqual(10, orderLine.Amount);
        }
示例#2
0
 public void OrderLine_amount_less_then_one_fails_test()
 {
     OrderLine orderLine = new OrderLine();
     orderLine.Amount = 0;
 }
示例#3
0
 public void AddOrderLine(OrderLine orderLine)
  {
      orderLines.Add(orderLine);
  } 
示例#4
0
 public void RemoveOrderLine(OrderLine orderLine)
 {
     orderLines.Remove(orderLine);
 }
示例#5
0
 public void RemoveOrderLine(OrderLine orderLine)
 {
     GetOrderLines().Remove(orderLine);
 }