public void IndexPageShouldCallGetStatesOfStatesRepositoryOnlyOneTime()
        {
            _productRepository.GetProducts().Returns(_preparedProducts);
            var controller = new ProductSelectionController(_stateRepository, _categoryRepository, _productRepository);

            controller.Index(ProductName, ExampleCorrectPreferredPriceInput,
                             ExampleCorrectCount);
            _stateRepository.Received(1).GetStates();
        }
            public void IndexPageShouldCallGetStatesOfStatesRepositoryOnlyOneTime()
            {
                _productRepository.GetProducts().Returns(_preparedProducts);
                var controller =
                    new CategorySelectionController(_categoryRepository, _stateRepository, _productRepository);

                controller.Index(CategoryName);
                _stateRepository.Received(1).GetStates();
            }
        public void IndexPageShouldCallGetStatesOfStatesRepositoryOnlyOneTime()
        {
            var controller = new HomeController(_categoryRepository, _stateRepository, _productRepository);

            controller.Index();
            _stateRepository.Received(1).GetStates();
        }