public CartRepositoryTests() { container = new PointOfScaleContainer(); cartRepository = new CartRepository(container); container.CartLines = new List <CartLine> { new CartLine { Product = new Product { Code = "A", RetailPrice = 1.25m, VolumePrice = 3m, VolumeQuantity = 3 }, Quantity = 1 }, new CartLine { Product = new Product { Code = "B", RetailPrice = 4.25m }, Quantity = 2 }, new CartLine { Product = new Product { Code = "C", RetailPrice = 1m, VolumePrice = 5m, VolumeQuantity = 6 }, Quantity = 3 }, new CartLine { Product = new Product { Code = "D", RetailPrice = 0.75m }, Quantity = 4 } }; }
public ProductRangeRepositoryTests() { container = new PointOfScaleContainer(); productRangeRepository = new ProductRangeRepository(container); container.Products = new List <Product> { new Product { Code = "A", RetailPrice = 1.25m, VolumePrice = 3m, VolumeQuantity = 3 }, new Product { Code = "B", RetailPrice = 4.25m }, new Product { Code = "C", RetailPrice = 1m, VolumePrice = 5m, VolumeQuantity = 6 }, new Product { Code = "D", RetailPrice = 0.75m } }; }