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

            //Assert
            sut.Count.Should().BeGreaterOrEqualTo(1);
        }
Beispiel #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));
        }
Beispiel #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));
        }
Beispiel #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);
        }
Beispiel #17
0
 public HighwayController(HotSpotService service)
 {
     _service = service;
 }
 public HotSpotController(HotSpotService service)
 {
     _service = service;
 }
Beispiel #19
0
 public RoadTestInfoController(TownTestInfoService service, HotSpotService hotSpotService)
 {
     _service        = service;
     _hotSpotService = hotSpotService;
 }