예제 #1
0
 public void TestInitialize()
 {
     townRepository.Setup(x => x.GetAll()).Returns(towns.AsQueryable());
     eNodebRepository.SetupGet(x => x.GetAll()).Returns(eNodebs.AsQueryable());
     controller = new ParametersController(townRepository.Object, eNodebRepository.Object, null, null, null,
                                           regionRepository.Object, null);
     helper = new QueryTestHelper(controller, towns, eNodebs);
 }
예제 #2
0
 public void TestInitialize()
 {
     townRepository.Setup(x => x.GetAll()).Returns(towns.AsQueryable());
     eNodebRepository.SetupGet(x => x.GetAll()).Returns(eNodebs.AsQueryable());
     controller = new ParametersController(townRepository.Object, eNodebRepository.Object, null, null, null,
         regionRepository.Object, null);
     helper = new QueryTestHelper(controller, towns, eNodebs);
 }