예제 #1
0
        public void Should_CreateBlogFeedContentObject_AndCheckSummaryParameter()
        {
            var obtained = new BlogFeedContent
                           .BlogFeedContentBuilder()
                           .WithSummary(SampleSummary)
                           .Build();

            obtained.Summary.Should().Be(SampleSummary);
        }
예제 #2
0
        public void Should_CreateBlogFeedContentObject_AndCheckFullContentParameter()
        {
            var obtained = new BlogFeedContent
                           .BlogFeedContentBuilder()
                           .WithFullContent(SampleHtmlContent)
                           .Build();

            obtained.FullContent.Should().Be(SampleHtmlContent);
        }
예제 #3
0
        public void Should_CreateBlogFeedContentObject_AndCheckUrlParameter()
        {
            var obtained = new BlogFeedContent
                           .BlogFeedContentBuilder()
                           .WithUrl(Url)
                           .Build();

            obtained.Url.Should().Be(Url);
        }
예제 #4
0
        public void Should_CreateBlogFeedContentObject_AndCheckPublishDateParameter()
        {
            var obtained = new BlogFeedContent
                           .BlogFeedContentBuilder()
                           .WithPublishDate(_samplePublishDate)
                           .Build();

            obtained.PublishDate.Should().Be(_samplePublishDate);
        }
예제 #5
0
        public void Should_CreateBlogFeedContentObject_AndCheckCategoriesParameter()
        {
            var obtained = new BlogFeedContent
                           .BlogFeedContentBuilder()
                           .WithCategories(_sampleCategories)
                           .Build();

            _sampleCategories.SequenceEqual(obtained.Categories).Should().BeTrue();
        }
예제 #6
0
        public void Should_CreateBlogFeedContentObject_AndCheckTitleParameter()
        {
            var obtained = new BlogFeedContent
                           .BlogFeedContentBuilder()
                           .WithTitle(SampleTitle)
                           .Build();

            obtained.Title.Should().Be(SampleTitle);
        }
예제 #7
0
        public void Should_CreateBlogFeedContentObject_AndCheckIdParameter()
        {
            var obtained = new BlogFeedContent
                           .BlogFeedContentBuilder()
                           .WithId(SampleId)
                           .Build();

            obtained.Id.Should().Be(SampleId);
        }
예제 #8
0
        public void Should_CreateBlogFeedContentObject_AndCheckThumbnailImagesParameter()
        {
            var obtained = new BlogFeedContent
                           .BlogFeedContentBuilder()
                           .WithThumbnailImages(_thumbnailImages)
                           .Build();

            obtained.ThumbnailImages.Should().Be(_thumbnailImages);
        }
예제 #9
0
        public void Should_CreatePostsObject_FromBlogFeedContentObject()
        {
            var blogFeedContent = new BlogFeedContent
                                  .BlogFeedContentBuilder()
                                  .WithTitle(Title)
                                  .WithCategories(_categories)
                                  .WithPublishDate(_publishDate)
                                  .WithFullContent(Content)
                                  .WithUrl(Url)
                                  .WithThumbnailImages(new ThumbnailImages())
                                  .WithTags(_tags)
                                  .Build();

            var obtained = new Post(blogFeedContent);

            AreEqualWithSourceParameters(obtained).Should().BeTrue();
        }