public void CanGetAssetEndpoint() { var endpoint = RestEndpointResolver.GetEndpointUrl <Asset>("spaceId"); const string expectedEndpoint = "https://cdn.contentful.com/spaces/spaceId/assets/"; Assert.AreEqual(expectedEndpoint, endpoint); }
public void CanGetSpaceEndpointForPreview() { var endpoint = RestEndpointResolver.GetEndpointUrl <Space>("spaceId", true); const string expectedEndpoint = "https://preview.contentful.com/spaces/spaceId"; Assert.AreEqual(expectedEndpoint, endpoint); }