Inheritance: Tavis.Link
Exemplo n.º 1
0
        public void ResolveBingMapLinkUsingCreate()
        {
            var link = new BingMapLink()
            {
                Lat = 45,
                Long = -73,
                Level = 10
            };

            var request = link.CreateRequest();

            Assert.Equal("http://www.bing.com/maps/?v=2&cp=45~-73&lvl=10", request.RequestUri.AbsoluteUri);
        }
Exemplo n.º 2
0
        public void ResolveBingMapLinkUsingCreate()
        {
            var link = new BingMapLink()
            {
                Lat   = 45,
                Long  = -73,
                Level = 10
            };

            var request = link.CreateRequest();

            Assert.Equal("http://www.bing.com/maps/?v=2&cp=45~-73&lvl=10", request.RequestUri.AbsoluteUri);
        }
Exemplo n.º 3
0
        public void ExecutePublicWebUrl()
        {
            var link = new BingMapLink();
            link.SetCoordinates(45,-73);

            var request = link.CreateRequest();

            Assert.Equal("http://www.bing.com/maps/?v=2&cp=45~-73&lvl=10", request.RequestUri.AbsoluteUri);
        }