public void Index_Sets_Model_To_AllCandies()
        {
            var expectedModel = new List <Candy>();
            var result        = sut.Index();

            candyRepo.GetAll().Returns(expectedModel);
        }
        public void Index_Sets_AllCandy_As_Model()
        {
            var expectedModel = new List <Candy>();
            var result        = underTest.Index();

            candyRepo.GetAll().Returns(expectedModel);
        }
Beispiel #3
0
 public IEnumerable <Candy> GetAll()
 {
     return(_candyRepository.GetAll());
 }
Beispiel #4
0
 public ViewResult Index()
 {
     candyRepo.GetAll();
     return(View());
 }