public void TestFixtureSetup() { _eNodebRepository.Setup(x => x.GetByENodebId(It.IsAny<int>())).Returns(new ENodeb { Factory = "中兴" }); _eNodebRepository.Setup(x => x.GetByENodebId(It.Is<int>(id => id == 500814))).Returns(new ENodeb { Factory = "华为" }); _huaweiENodebHoRepository.Setup(x => x.GetRecent(It.IsAny<int>())) .Returns<int>(eNodebId => new IntraRatHoComm { eNodeB_Id = eNodebId, IntraFreqHoA3RprtQuan = 3344 }); _zteMeasurementRepository.Setup(x => x.GetRecent(It.IsAny<int>(), It.IsAny<int>())) .Returns<int, int>((eNodebId, configId) => new UeEUtranMeasurementZte { eNodeB_Id = eNodebId, reportAmount = 1234, reportQuantity = 5678 }); _typeFinder = new TypeFinder(new MyAssemblyFinder()); _module = new AbpAutoMapperModule(_typeFinder); _module.PostInitialize(); }
public void FixtureSetup() { _typeFinder = new TypeFinder(new MyAssemblyFinder()); _module = new AbpAutoMapperModule(_typeFinder); _module.PostInitialize(); _statRepository.MockOperation(); _regionRepository.MockOperation(); }
public void TestFixtureSetup() { _typeFinder = new TypeFinder(new MyAssemblyFinder()); _module = new AbpAutoMapperModule(_typeFinder); _module.PostInitialize(); _service = new CollegeKpiService(_repository.Object, _collegeRepository.Object); _collegeRepository.MockThreeColleges(); _collegeRepository.MockOpertions(); _collegeRepository.MockGetId<ICollegeRepository, CollegeInfo>(); _repository.MockOperations(); }
public void TestFixtureService() { _typeFinder = new TypeFinder(new MyAssemblyFinder()); _module = new AbpAutoMapperModule(_typeFinder); _module.PostInitialize(); _btsRepository.MockOperation(); _btsRepository.MockGetId<IBtsRepository, CdmaBts>(); _btsRepository.MockThreeBtss(); _repository.MockOperations(); _service = new CollegeBtssService(_repository.Object, _btsRepository.Object, _townRepository.Object); _testService = new CollegeBtsTestService(_repository, _btsRepository); }
public void fs() { _typeFinder = new TypeFinder(new MyAssemblyFinder()); _module = new AbpAutoMapperModule(_typeFinder); _module.PostInitialize(); var testDirectory = AppDomain.CurrentDomain.BaseDirectory; var excelFilesDirectory = Path.Combine(testDirectory, "ExcelFiles"); _excelFileName = Path.Combine(excelFilesDirectory, "佛山.xls"); _regionRepository.MockOperation(); _dropRepository.MockOperation(); _service = new KpiImportService(_regionRepository.Object, _dropRepository.Object, _connectionRepository.Object, null, null, null, null, null, null, null, _townRepository.Object); }
public void TestFixtureService() { _typeFinder = new TypeFinder(new MyAssemblyFinder()); _module = new AbpAutoMapperModule(_typeFinder); _module.PostInitialize(); _service = new TopDrop2GService(_repository.Object, _btsRepository.Object, _eNodebRepository.Object); _testService = new TopDrop2GTestService(_repository, _btsRepository, _eNodebRepository); _repository.MockOperation(); _btsRepository.MockOperation(); _btsRepository.MockGetId<IBtsRepository, CdmaBts>(); _eNodebRepository.MockOperations(); _eNodebRepository.MockGetId<IENodebRepository, ENodeb>(); _eNodebRepository.MockThreeENodebs(); _btsRepository.MockSixBtssWithENodebId(); }
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" }); }
public void TestFixtureSetup() { _typeFinder = new TypeFinder(new MyAssemblyFinder()); _module = new AbpAutoMapperModule(_typeFinder); _module.PostInitialize(); }
public void NewFinderTest() { var finder = new TypeFinder(null); }