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); }
public void OrderLine_amount_less_then_one_fails_test() { OrderLine orderLine = new OrderLine(); orderLine.Amount = 0; }
public void AddOrderLine(OrderLine orderLine) { orderLines.Add(orderLine); }
public void RemoveOrderLine(OrderLine orderLine) { orderLines.Remove(orderLine); }
public void RemoveOrderLine(OrderLine orderLine) { GetOrderLines().Remove(orderLine); }