Пример #1
0
 public void TfSetup()
 {
     _typeFinder = new TypeFinder(new MyAssemblyFinder());
     _module     = new AbpAutoMapperModule(_typeFinder);
     _module.PostInitialize();
     _service = new College4GTestService(_repository.Object, _collegeRepository.Object,
                                         _eNodebRepository.Object, _cellRepository.Object);
     _collegeRepository.MockThreeColleges();
     _collegeRepository.Setup(x => x.Get(It.IsAny <int>())).Returns <int>(
         id => new CollegeInfo
     {
         Id   = id,
         Name = "college-1"
     });
 }
Пример #2
0
 public College4GTestController(College4GTestService service)
 {
     _service = service;
 }
Пример #3
0
 public void TfSetup()
 {
     _typeFinder = new TypeFinder(new MyAssemblyFinder());
     _module = new AbpAutoMapperModule(_typeFinder);
     _module.PostInitialize();
     _service = new College4GTestService(_repository.Object, _collegeRepository.Object,
         _eNodebRepository.Object, _cellRepository.Object);
     _collegeRepository.MockThreeColleges();
     _collegeRepository.Setup(x => x.Get(It.IsAny<int>())).Returns<int>(
         id => new CollegeInfo
         {
             Id = id,
             Name = "college-1"
         });
 }