コード例 #1
0
 public void TestInitialize()
 {
     mockTownRepository.Setup(x => x.GetAll()).Returns(towns.AsQueryable());
     mockTownRepository.Setup(x => x.GetAllList()).Returns(mockTownRepository.Object.GetAll().ToList());
     mockTownRepository.Setup(x => x.Count()).Returns(mockTownRepository.Object.GetAll().Count());
     helper = new ENodebQueryViewModelTestHelper(towns, viewModel);
 }
コード例 #2
0
 public void TestInitialize()
 {
     mockTownRepository.Setup(x => x.GetAll()).Returns(towns.AsQueryable());
     mockTownRepository.Setup(x => x.GetAllList()).Returns(mockTownRepository.Object.GetAll().ToList());
     mockTownRepository.Setup(x => x.Count()).Returns(mockTownRepository.Object.GetAll().Count());
     helper = new ENodebQueryViewModelTestHelper(towns, viewModel);
 }