public void DoRequestWithEmptyUrlReturnsCorrectResponse()
        {
            //Arrange
            FakeSendRequest fakeSendRequest  = new FakeSendRequest();
            string          expectedResponse = "no response";
            //Act
            string actualResponse = fakeSendRequest.DoRequest();

            //Assert
            Assert.AreEqual(actualResponse, expectedResponse);
        }
        public void DoRequestWithUrlContainsLinesReturnsCorrectResponse()
        {
            //Arrange
            string          url              = "http://data.mobilites-m.fr/api/lines/json?types=ligne&codes=SEM_C1 ";
            FakeSendRequest fakeSendRequest  = new FakeSendRequest(url);
            string          expectedResponse = "[{\"id\": \"SEM:12\",\"gtfsId\": \"SEM:12\",\"shortName\": \"12\",\"longName\": \"Eybens Maisons Neuves / Saint-Martin-d'Hères Les Alloves\",\"color\": \"399645\",\"textColor\": \"FFFFFF\",\"mode\": \"BUS\",\"type\": \"PROXIMO\"}]";

            //Act
            string actualResponse = fakeSendRequest.DoRequest();

            //Assert
            Assert.AreEqual(actualResponse, expectedResponse);
        }
        public void DoRequestWithUrlContainsNearLinesReturnsCorrectResponse()
        {
            //Arrange
            string          url              = "http://data.mobilites-m.fr/api/linesNear/json?x=5.709360123&y=45.176494599999984&dist=400&details=true";
            FakeSendRequest fakeSendRequest  = new FakeSendRequest(url);
            string          expectedResponse = "[{ \"id\": \"SEM:0844\", \"name\": \"Grenoble, Champs-Elysées\", \"lon\": 5.71025,\"lat\": 45.17794,\"zone\": \"SEM_GENCHAMPSEL\", \"lines\":[\"SEM:12\"]},{ \"id\": \"SEM:0846\",\"name\": \"Grenoble, Salengro\",\"lon\": 5.70893,\"lat\": 45.17557,\"zone\": \"SEM_GENSALENGRO\",\"lines\":[\"SEM:12\"]}]";

            //Act
            string actualResponse = fakeSendRequest.DoRequest();

            //Assert
            Assert.AreEqual(actualResponse, expectedResponse);
        }