Ejemplo n.º 1
0
        public void TestGateway_JeeptripTwl()
        {
            RemoteFileFetcherGateway gateway = new RemoteFileFetcherGateway(Substitute.For<ILogger>());
            var response = gateway.GetFileContent("http://jeeptrip.co.il/routes/pd6bccre.twl").Result;

            Assert.AreEqual("pd6bccre.twl", response.FileName);
        }
Ejemplo n.º 2
0
        public void TestGateway_JeepologAttachmentGpx()
        {
            RemoteFileFetcherGateway gateway = new RemoteFileFetcherGateway(Substitute.For<ILogger>());
            var response = gateway.GetFileContent("http://www.jeepolog.com/forums/attachment.php?attachmentid=103471").Result;

            Assert.AreEqual("yehuda-2015.GPX", response.FileName);
        }
Ejemplo n.º 3
0
        public void TestGateway_JeeptripTwl()
        {
            RemoteFileFetcherGateway gateway = new RemoteFileFetcherGateway(Substitute.For <ILogger>());
            var response = gateway.GetFileContent("http://jeeptrip.co.il/routes/pd6bccre.twl").Result;

            Assert.AreEqual("pd6bccre.twl", response.FileName);
        }
Ejemplo n.º 4
0
        public void TestGateway_InvalidFile()
        {
            var gateway  = new RemoteFileFetcherGateway(Substitute.For <ILogger>());
            var response = gateway.GetFileContent("http://israelhiking.osm.org.il/Hebrew/Tiles/11/1228/826.png").Result;

            Assert.IsFalse(response.Content.Any());
        }
Ejemplo n.º 5
0
        public void TestGateway_JeepologAttachmentGpx()
        {
            RemoteFileFetcherGateway gateway = new RemoteFileFetcherGateway(Substitute.For <ILogger>());
            var response = gateway.GetFileContent("http://www.jeepolog.com/forums/attachment.php?attachmentid=103471").Result;

            Assert.AreEqual("yehuda-2015.GPX", response.FileName);
        }