We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3df31b8 commit addd302Copy full SHA for addd302
tests/LinkDotNet.Blog.UnitTests/Domain/BlogPostTests.cs
@@ -90,4 +90,15 @@ public void ShouldThrowErrorWhenCreatingBlogPostThatIsPublishedAndHasScheduledPu
90
91
action.Should().Throw<InvalidOperationException>();
92
}
93
+
94
+ [Fact]
95
+ public void ShouldUpdateScheduledPublishDate()
96
+ {
97
+ var blogPost = new BlogPostBuilder().Build();
98
+ var bp = new BlogPostBuilder().IsPublished(false).WithScheduledPublishDate(new DateTime(2023, 3, 24)).Build();
99
100
+ blogPost.Update(bp);
101
102
+ blogPost.ScheduledPublishDate.Should().Be(new DateTime(2023, 3, 24));
103
+ }
104
0 commit comments