public void Test_hasPizzaPrice() { var pizza = new CheesePizza(); pizza.addCrust(new MediumCrust()); var store = new NewYorkStore(); var order = new Domain.Models.Orders.Order(); store.newOrder(new Domain.Models.Orders.Customer(), order); store.addPizza(order, pizza); Assert.True(order.price == pizza.price); }
public void Test_notHavePizzaPrice() { var pizza = new CheesePizza(); pizza.addCrust(new MediumCrust()); var store = new NewYorkStore(); var order = new Domain.Models.Orders.Order(); store.newOrder(new Domain.Models.Orders.Customer(), order); store.addPizza(order, pizza); store.removePizza(order, pizza); Assert.False(order.pizzas.Contains(pizza)); }