Пример #1
0
 public KpiController(TownQueryService townService, KpiImportService importService,
     PreciseImportService preciseImportService, WorkItemService workItemService,
     InterferenceMatrixService interferenceMatrix)
 {
     _townService = townService;
     _importService = importService;
     _preciseImportService = preciseImportService;
     _workItemService = workItemService;
     _interferenceMatrix = interferenceMatrix;
 }
Пример #2
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);
 }
Пример #3
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, null, null, null, null);
        }