public Arrangement() { var endpoint = new EndpointStub(); SUT = new CatalogManager(endpoint); items.Add("Macbook", 10); items.Add("iPad", 5); SUT.AddItems(items); }
public Arrangement(CartModel cart, bool existingCart) { Cart = cart; var items = new Dictionary <string, int>(); items.Add("Macbook", 10); items.Add("iPad", 5); var catalogManager = new CatalogManager(); catalogManager.AddItems(items); SUT = new CartManager(catalogManager); if (existingCart) { ExistingCart = new CartModel() { Items = items }; CartId = SUT.AddCart(ExistingCart); } }