예제 #1
0
        public void CanGetAssetEndpoint()
        {
            var          endpoint         = RestEndpointResolver.GetEndpointUrl <Asset>("spaceId");
            const string expectedEndpoint = "https://cdn.contentful.com/spaces/spaceId/assets/";

            Assert.AreEqual(expectedEndpoint, endpoint);
        }
예제 #2
0
        public void CanGetSpaceEndpointForPreview()
        {
            var          endpoint         = RestEndpointResolver.GetEndpointUrl <Space>("spaceId", true);
            const string expectedEndpoint = "https://preview.contentful.com/spaces/spaceId";

            Assert.AreEqual(expectedEndpoint, endpoint);
        }