public void GetProductsToRefillWhenProductsWithQuantityLessThan10ReturnsProductsList()
        {
            ProductCollectionMoq.GetProductsToRefill(MockProductRepository, products);
            IList <Product> foundProducts = MockProductRepository.Object.GetProductsToRefill();

            Assert.AreEqual(2, foundProducts.Count);
        }
        public void RefillWhenQuantity10ReturnTrue()
        {
            ProductCollectionMoq.GetProductsToRefill(MockProductRepository, products);
            IList <Product> foundProducts = MockProductRepository.Object.GetProductsToRefill();

            Assert.AreEqual(2, foundProducts.Count);
        }
        public void GetProductsToRefillWhenAllProductsQuantityAre10ReturnsEmptyList()
        {
            products = new List <Product>
            {
                new Product {
                    Name = "ProdTest1", Quantity = 10, Price = 10
                },
                new Product {
                    Name = "ProdTest2", Quantity = 10, Price = 10
                },
                new Product {
                    Name = "ProdTest3", Quantity = 10, Price = 10
                },
            };

            ProductCollectionMoq.GetProductsToRefill(MockProductRepository, products);
            IList <Product> foundProducts = MockProductRepository.Object.GetProductsToRefill();

            Assert.AreEqual(0, foundProducts.Count);
        }