Пример #1
0
        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();
 }
Пример #3
0
 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();
 }
Пример #4
0
 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);
 }
Пример #5
0
 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);
 }
Пример #6
0
 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();
 }
Пример #7
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"
         });
 }
Пример #8
0
 public void TestFixtureSetup()
 {
     _typeFinder = new TypeFinder(new MyAssemblyFinder());
     _module = new AbpAutoMapperModule(_typeFinder);
     _module.PostInitialize();
 }
Пример #9
0
 public void NewFinderTest()
 {
     var finder = new TypeFinder(null);
 }