コード例 #1
0
        public void Index_Sets_Model_To_AllCandies()
        {
            var expectedModel = new List <Candy>();
            var result        = sut.Index();

            candyRepo.GetAll().Returns(expectedModel);
        }
コード例 #2
0
        public void Index_Sets_AllCandy_As_Model()
        {
            var expectedModel = new List <Candy>();
            var result        = underTest.Index();

            candyRepo.GetAll().Returns(expectedModel);
        }
コード例 #3
0
ファイル: CandyService.cs プロジェクト: viesl/Training
 public IEnumerable <Candy> GetAll()
 {
     return(_candyRepository.GetAll());
 }
コード例 #4
0
ファイル: HomeController.cs プロジェクト: KaytiSwift/CandyApp
 public ViewResult Index()
 {
     candyRepo.GetAll();
     return(View());
 }