コード例 #1
0
        public void Then_The_Url_Is_Correctly_Built_For_An_Entry(string entryId)
        {
            //Act
            var actual = new GetLandingPageRequest(entryId);

            //Assert
            actual.GetUrl.Should().Be($"entries?content_type=landingPage&include=2&sys.id={entryId}");
        }
コード例 #2
0
        public void Then_The_Url_Is_Correctly_Built(string hubType, string slug)
        {
            //Act
            var actual = new GetLandingPageRequest(hubType, slug);

            //Assert
            actual.GetUrl.Should().Be($"entries?content_type=landingPage&include=2&fields.hubType={hubType}&fields.slug={slug}");
        }