public void GetStatus_SuccessStatus_ValidResponse()
        {
            //Arrange

            var roadStatuses = new List <RoadStatus>()
            {
                new RoadStatus()
                {
                    DisplayName = "Good", Id = "1", StatusSeverity = "Closed"
                }
            };

            mockedConfiguration.SetupGet(m => m["apiEndpointBase"]).Returns("http://myBase");
            mockedConfiguration.SetupGet(m => m["appId"]).Returns("AppId");
            mockedConfiguration.SetupGet(m => m["appKey"]).Returns("AppKey");

            mockHttpMessageHandler.When("http://myBase/*")
            .Respond("application/json", JsonConvert.SerializeObject(roadStatuses));     // Respond with JSON

            //Act
            var result = sut.GetStatus("A32");

            //Assert
            Assert.AreEqual(roadStatuses.First().Id, result.Result.Id);
        }
 public void WhenTheClientIsRun()
 {
     roadStatus = (RoadStatus)roadStatusService.GetStatus(_roadName).Result;
 }