public void initializeTest()
        {
            _fireBanServiceMoq = Substitute.For <IFireBanAppService>();
            _fireBanServiceMoq.GetAllFireBanData().Returns(new List <FireBanData> {
                new FireBanData {
                    district            = "Far North Coast",
                    regionNumber        = 1,
                    councils            = "Ballina; Byron; Clarence Valley; Kyogle; Lismore; Richmond Valley; Tweed",
                    dangerLevelToday    = "LOW MODERATE",
                    dangerLevelTomorrow = "LOW MODERATE",
                    fireBanToday        = false,
                    fireBanTomorrow     = false
                },
                new FireBanData {
                    district            = "Illawarra/Shoalhaven",
                    regionNumber        = 5,
                    councils            = "Kiama; Shellharbour; Shoalhaven; Wingecarribee; Wollondilly; Wollongong",
                    dangerLevelToday    = "LOW MODERATE",
                    dangerLevelTomorrow = "LOW MODERATE",
                    fireBanToday        = false,
                    fireBanTomorrow     = false
                }
            });

            _fireBanEmptyServiceMoq = Substitute.For <IFireBanAppService>();
            _fireBanEmptyServiceMoq.GetAllFireBanData().Returns(new List <FireBanData> {
            });

            _fireBanRepository = new FireBanRepo();
            _fireBanService    = new FireBanAppService(_fireBanRepository);
        }
        public void initializeTest()
        {
            _fireBanServiceMoq = Substitute.For <IFireBanAppService>();
            _fireBanServiceMoq.GetAllFireBanData().Returns(new List <FireBanData> {
                new FireBanData {
                    district            = "Far North Coast",
                    regionNumber        = 1,
                    councils            = "Ballina; Byron; Clarence Valley; Kyogle; Lismore; Richmond Valley; Tweed",
                    dangerLevelToday    = "LOW MODERATE",
                    dangerLevelTomorrow = "LOW MODERATE",
                    fireBanToday        = false,
                    fireBanTomorrow     = false
                },
                new FireBanData {
                    district            = "Illawarra/Shoalhaven",
                    regionNumber        = 5,
                    councils            = "Kiama; Shellharbour; Shoalhaven; Wingecarribee; Wollondilly; Wollongong",
                    dangerLevelToday    = "LOW MODERATE",
                    dangerLevelTomorrow = "LOW MODERATE",
                    fireBanToday        = false,
                    fireBanTomorrow     = false
                }
            });
            _fireBanCtlMoq = new FireDataController(_fireBanServiceMoq);


            _fireBanEmptyServiceMoq = Substitute.For <IFireBanAppService>();
            _fireBanEmptyServiceMoq.GetAllFireBanData().Returns(new List <FireBanData> {
            });
            _fireBanCtlwithEmptyServ = new FireDataController(_fireBanEmptyServiceMoq);

            _fireBanRepository = new FireBanRepo();
            _fireBanService    = new FireBanAppService(_fireBanRepository);
            _fireBanCtl        = new FireDataController(_fireBanService);


            _client = new HttpClient();

            _client.BaseAddress = new Uri(ServiceBaseURL);

            UrlResponse = _client.GetAsync("api/FireData").Result;
        }
 public FireBanAppService(IFireBanRepo fireBanRepo)
 {
     this._fireBanRepo = fireBanRepo;
 }