public void TestFixtureSetup() { _repository.MockOperation(); _repository.MockRepositorySaveItems<PreciseWorkItemCell, IPreciseWorkItemCellRepository>(); _repository.MockRepositoryUpdateWorkItemCell<PreciseWorkItemCell, IPreciseWorkItemCellRepository>(); _repository.MockQueryItems(new List<PreciseWorkItemCell> { new PreciseWorkItemCell { ENodebId = 1, SectorId = 2, WorkItemNumber = "007" } }.AsQueryable()); _powerRepository.Setup(x => x.Query(It.IsAny<int>(), It.IsAny<byte>())).Returns<int, byte>(null); _powerRepository.Setup(x => x.Query(1, 2)).Returns(new CellPower { ENodebId = 1, SectorId = 2, RsPower = 15.2 }); _powerRepository.Setup(x => x.Query(1, 2)).Returns(new CellPower { ENodebId = 3, SectorId = 4, RsPower = 16.2 }); _cellRepository.MockOperations(); _cellRepository.MockQueryItems(new List<Cell> { new Cell { ENodebId = 1, SectorId = 2, MTilt = 0.1, ETilt = 3 }, new Cell { ENodebId = 3, SectorId = 4, MTilt = 5.1, ETilt = 2 } }.AsQueryable()); _serivice = new PreciseWorkItemService(_repository.Object, _powerRepository.Object, _cellRepository.Object); var module = new AbpAutoMapperModule(_typeFinder); module.PostInitialize(); }
public InterferenceNeighborWorkItemController(PreciseWorkItemService service) { _service = service; }
public PreciseWorkItemController(PreciseWorkItemService service, WorkItemService workItemService) { _service = service; _workItemService = workItemService; }
public CoverageWorkItemController(PreciseWorkItemService service) { _service = service; }
public InterferenceVictimWorkItemController(PreciseWorkItemService service) { _service = service; }