public void Setup() { _fireTruck = new Product { Id = "f1234", Description = "Fire Truck", Color = ProductColor.RED, Price = 8.95, Size = ProductSize.MEDIUM }; _barbieClassic = new Product { Id = "b7654", Description = "Barbie Classic", Color = ProductColor.YELLOW, Price = 15.95, Size = ProductSize.SMALL }; _frisbee = new Product { Id = "f4321", Description = "Frisbee", Color = ProductColor.GREEN, Price = 9.99, Size = ProductSize.LARGE }; _baseball = new Product { Id = "b2343", Description = "Baseball", Color = ProductColor.WHITE, Price = 8.95, Size = ProductSize.NOT_APPLICABLE }; _toyConvertible = new Product { Id = "p1112", Description = "Toy Porsche Convertible", Color = ProductColor.RED, Price = 230, Size = ProductSize.NOT_APPLICABLE }; _productRepositoryWithSpecification = new ProductRepositoryWithSpecification(); _productRepositoryWithSpecification.Add(_fireTruck); _productRepositoryWithSpecification.Add(_barbieClassic); _productRepositoryWithSpecification.Add(_frisbee); _productRepositoryWithSpecification.Add(_baseball); _productRepositoryWithSpecification.Add(_toyConvertible); }
public void Setup() { _fireTruck = new Product { Id = "f1234", Description = "Fire Truck", Color = ProductColor.RED, Price = 8.95, Size = ProductSize.MEDIUM }; _barbieClassic = new Product { Id = "b7654", Description = "Barbie Classic", Color = ProductColor.YELLOW, Price = 15.95, Size = ProductSize.SMALL }; _frisbee = new Product { Id = "f4321", Description = "Frisbee", Color = ProductColor.GREEN, Price = 9.99, Size = ProductSize.LARGE }; _baseball = new Product { Id = "b2343", Description = "Baseball", Color = ProductColor.WHITE, Price = 8.95, Size = ProductSize.NOT_APPLICABLE }; _toyConvertible = new Product { Id = "p1112", Description = "Toy Porsche Convertible", Color = ProductColor.RED, Price = 230, Size = ProductSize.NOT_APPLICABLE }; _productRepositoryWithSpecification = new ProductRepositoryWithSpecification(); _productRepositoryWithSpecification.Add(_fireTruck); _productRepositoryWithSpecification.Add(_barbieClassic); _productRepositoryWithSpecification.Add(_frisbee); _productRepositoryWithSpecification.Add(_baseball); _productRepositoryWithSpecification.Add(_toyConvertible); }