예제 #1
0
 public MarketPrbController(PrbQueryService service, CollegeCellViewService collegeCellViewService,
                            HotSpotService marketService, TownPrbService townPrbService)
 {
     _service = service;
     _collegeCellViewService = collegeCellViewService;
     _marketService          = marketService;
     _townPrbService         = townPrbService;
 }
예제 #2
0
 public TransportationHourCqiController(HourCqiService service, CollegeCellViewService collegeCellViewService,
                                        HotSpotService transportationService, TownHourCqiService townCqiService)
 {
     _service = service;
     _collegeCellViewService = collegeCellViewService;
     _transportationService  = transportationService;
     _townCqiService         = townCqiService;
 }
예제 #3
0
 public TransportationFlowController(FlowQueryService service, CollegeCellViewService collegeCellViewService,
                                     HotSpotService transportationService, TownFlowService townFlowService)
 {
     _service = service;
     _collegeCellViewService = collegeCellViewService;
     _transportationService  = transportationService;
     _townFlowService        = townFlowService;
 }
예제 #4
0
 public TransportationMrsTadvController(MrsService service, CollegeCellViewService collegeCellViewService,
                                        HotSpotService collegeService, TownMrsTadvService townMrsTadvService)
 {
     _service = service;
     _collegeCellViewService = collegeCellViewService;
     _collegeService         = collegeService;
     _townMrsTadvService     = townMrsTadvService;
 }
예제 #5
0
 public TransportationPreciseController(PreciseStatService service, CollegeCellViewService collegeCellViewService,
                                        HotSpotService marketService, TownPreciseService townPreciseService)
 {
     _service = service;
     _collegeCellViewService = collegeCellViewService;
     _marketService          = marketService;
     _townPreciseService     = townPreciseService;
 }
예제 #6
0
 public MarketMrsSinrUlController(MrsService service, CollegeCellViewService collegeCellViewService,
                                  HotSpotService marketService, TownMrsSinrUlService townMrsSinrUlService)
 {
     _service = service;
     _collegeCellViewService = collegeCellViewService;
     _marketService          = marketService;
     _townMrsSinrUlService   = townMrsSinrUlService;
 }
예제 #7
0
 public MarketMrsTadvController(MrsService service, CollegeCellViewService collegeCellViewService,
                                HotSpotService collegeService, TownMrsTadvService townMrsTadvService)
 {
     _service = service;
     _collegeCellViewService = collegeCellViewService;
     _collegeService         = collegeService;
     _townMrsTadvService     = townMrsTadvService;
 }
예제 #8
0
 public MarketFlowController(FlowQueryService service, CollegeCellViewService collegeCellViewService,
                             HotSpotService marketService, TownFlowService townFlowService)
 {
     _service = service;
     _collegeCellViewService = collegeCellViewService;
     _marketService          = marketService;
     _townFlowService        = townFlowService;
 }
예제 #9
0
 public TransportationMrsRsrpController(MrsService service, CollegeCellViewService collegeCellViewService,
                                        HotSpotService marketService, TownMrsRsrpService townMrsRsrpService)
 {
     _service = service;
     _collegeCellViewService = collegeCellViewService;
     _marketService          = marketService;
     _townMrsRsrpService     = townMrsRsrpService;
 }
예제 #10
0
 public MarketCqiController(CqiReportService service, CollegeCellViewService collegeCellViewService,
                            HotSpotService marketService, TownCqiService townCqiService)
 {
     _service = service;
     _collegeCellViewService = collegeCellViewService;
     _marketService          = marketService;
     _townCqiService         = townCqiService;
 }
예제 #11
0
 public MarketMroRsrpController(TopCoverageStatService service, CollegeCellViewService collegeCellViewService,
                                HotSpotService marketService, TownCoverageService townMroRsrpService,
                                CoverageStatService coverageStatService)
 {
     _service = service;
     _collegeCellViewService = collegeCellViewService;
     _marketService          = marketService;
     _townMroRsrpService     = townMroRsrpService;
     _coverageStatService    = coverageStatService;
 }
예제 #12
0
        public void Should_Get_Hotspot_By_Id()
        {
            //Arrange
            var hotspot = new HotSpotService();
            //Act
            var sut = hotspot.GetById(100);

            //Assert
            sut.Number.Should().Be(100);
        }
예제 #13
0
        public void Should_Get_All_Hotspots()
        {
            //Arrange
            var hotspot = new HotSpotService();
            //Act
            var sut = hotspot.GetAll();

            //Assert
            sut.Count.Should().BeGreaterOrEqualTo(1);
        }
예제 #14
0
        public void Should_Get_All_Favorites()
        {
            //Arrange
            var hotspot        = new HotSpotService();
            var testingHotSpot = new HotSpotModel()
            {
                LocationName = "Test123",
            };

            hotspot.AddHotSpot(testingHotSpot);
            hotspot.MarkAsFavorite(testingHotSpot.Number);
            //Act
            var sut = hotspot.GetAllFavorites();

            //Assert
            Assert.Collection(sut, item => Assert.True(item.FavoriteHotSpot));
        }
예제 #15
0
        public void Should_Add_Hotspot()
        {
            //Arrange
            HotSpotService hs      = new HotSpotService();
            HotSpotModel   hotspot = new HotSpotModel()
            {
                LocationName = "Burzyńskiego 12",
                LatitudeX    = "54",
                LongitudeY   = "18",
            };
            //Act
            var sut         = hs.AddHotSpot(hotspot);
            var lastHotSpot = hs.GetAll().TakeLast(1);

            //Assert
            Assert.Collection(lastHotSpot, item => Assert.Contains("Burzyńskiego", item.LocationName));
            Assert.Collection(lastHotSpot, item => Assert.Contains("54", item.LatitudeX));
            Assert.Collection(lastHotSpot, item => Assert.Contains("18", item.LongitudeY));
        }
예제 #16
0
        public void Should_Update_Old_Data_In_Hotspot()
        {
            //Arrange
            var hotspotService = new HotSpotService();
            var allHotSpots    = hotspotService.GetAll();
            var updatedHotSpot = new HotSpotModel()
            {
                LocationName = "testing",
                LatitudeX    = "111",
                LongitudeY   = "222",
                //Number pop and FakeId prop are not taking care into consideration for the update purpose
                //Therefore it's values will be the same as used to be
                Number = 1,
                fakeID = "LOK001"
            };
            var currentHotSpot = hotspotService.GetById(1);

            //Act
            hotspotService.Update(1, updatedHotSpot);
            //Assert
            currentHotSpot.Should().BeEquivalentTo(updatedHotSpot);
        }
예제 #17
0
 public HighwayController(HotSpotService service)
 {
     _service = service;
 }
 public HotSpotController(HotSpotService service)
 {
     _service = service;
 }
예제 #19
0
 public RoadTestInfoController(TownTestInfoService service, HotSpotService hotSpotService)
 {
     _service        = service;
     _hotSpotService = hotSpotService;
 }