示例#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);
        }
        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();
        }