public void ResourcePathShouldBeSlash()
        {
            var request = new FluentHttpRequest("https://graph.facebook.com").ResourcePath("/");

            var resourcePath = request.GetResourcePath();

            Assert.Equal("/", resourcePath);
        }
        public void ResourcePathShouldBeSlash()
        {
            var request = new FluentHttpRequest("https://graph.facebook.com").ResourcePath("/");

            var resourcePath = request.GetResourcePath();

            Assert.Equal("/", resourcePath);
        }
예제 #3
0
        public void ItShouldStartWithSlash(string originalResourcePath)
        {
            var request = new FluentHttpRequest("https://www.facebook.com")
                          .ResourcePath(originalResourcePath);

            var resourcePath = request.GetResourcePath();

            Assert.True(resourcePath.StartsWith("/"));
        }
        public void ItShouldStartWithSlash(string originalResourcePath)
        {
            var request = new FluentHttpRequest("https://www.facebook.com")
                              .ResourcePath(originalResourcePath);

            var resourcePath = request.GetResourcePath();

            Assert.True(resourcePath.StartsWith("/"));
        }
예제 #5
0
        public void ItResourcePathShouldBeEmptyString()
        {
            var request = new FluentHttpRequest("https://graph.facebook.com").ResourcePath("/me");

            request.ResourcePath(null);

            var result = request.GetResourcePath();

            Assert.Equal(string.Empty, result);
        }
        public void ItResourcePathShouldBeEmptyString()
        {
            var request = new FluentHttpRequest("https://graph.facebook.com").ResourcePath("/me");

            request.ResourcePath(null);

            var result = request.GetResourcePath();

            Assert.Equal(string.Empty, result);
        }
예제 #7
0
        public void ItShouldStartWithSlashFollowedByTheOriginalResourcePath(string originalResourcePath)
        {
            var expcetedResourcePath = string.Concat("/", originalResourcePath);

            var request = new FluentHttpRequest("https://www.facebook.com")
                          .ResourcePath(originalResourcePath);

            var resourcePath = request.GetResourcePath();

            Assert.Equal(expcetedResourcePath, resourcePath);
        }
        public void ItShouldStartWithSlashFollowedByTheOriginalResourcePath(string originalResourcePath)
        {
            var expcetedResourcePath = string.Concat("/", originalResourcePath);

            var request = new FluentHttpRequest("https://www.facebook.com")
                              .ResourcePath(originalResourcePath);

            var resourcePath = request.GetResourcePath();

            Assert.Equal(expcetedResourcePath, resourcePath);
        }