public void GetProductPriceByKeyWhenProductExists()
        {
            ProductCollectionMoq.GetProductPriceByKey(MockProductRepository, products);
            ProductCollectionMoq.GetProducts(MockProductRepository, products);

            double price = MockProductRepository.Object.GetProductPriceByKey(0);

            Assert.AreEqual(10, price);
        }
        public void GetProductPriceByKeyWhenNoProduct()
        {
            products = new List <Product>();

            ProductCollectionMoq.GetProductPriceByKey(MockProductRepository, products);
            ProductCollectionMoq.GetProducts(MockProductRepository, products);

            double price = MockProductRepository.Object.GetProductPriceByKey(0);

            Assert.AreEqual(-1, price);
        }