public void Should_CreateBlogFeedContentObject_AndCheckSummaryParameter() { var obtained = new BlogFeedContent .BlogFeedContentBuilder() .WithSummary(SampleSummary) .Build(); obtained.Summary.Should().Be(SampleSummary); }
public void Should_CreateBlogFeedContentObject_AndCheckFullContentParameter() { var obtained = new BlogFeedContent .BlogFeedContentBuilder() .WithFullContent(SampleHtmlContent) .Build(); obtained.FullContent.Should().Be(SampleHtmlContent); }
public void Should_CreateBlogFeedContentObject_AndCheckUrlParameter() { var obtained = new BlogFeedContent .BlogFeedContentBuilder() .WithUrl(Url) .Build(); obtained.Url.Should().Be(Url); }
public void Should_CreateBlogFeedContentObject_AndCheckPublishDateParameter() { var obtained = new BlogFeedContent .BlogFeedContentBuilder() .WithPublishDate(_samplePublishDate) .Build(); obtained.PublishDate.Should().Be(_samplePublishDate); }
public void Should_CreateBlogFeedContentObject_AndCheckCategoriesParameter() { var obtained = new BlogFeedContent .BlogFeedContentBuilder() .WithCategories(_sampleCategories) .Build(); _sampleCategories.SequenceEqual(obtained.Categories).Should().BeTrue(); }
public void Should_CreateBlogFeedContentObject_AndCheckTitleParameter() { var obtained = new BlogFeedContent .BlogFeedContentBuilder() .WithTitle(SampleTitle) .Build(); obtained.Title.Should().Be(SampleTitle); }
public void Should_CreateBlogFeedContentObject_AndCheckIdParameter() { var obtained = new BlogFeedContent .BlogFeedContentBuilder() .WithId(SampleId) .Build(); obtained.Id.Should().Be(SampleId); }
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(); }