diff --git a/backend/tests/PostService/PostService.Domain.Tests/CommentTests.cs b/backend/tests/PostService/PostService.Domain.Tests/CommentTests.cs index e842202..dea52d2 100644 --- a/backend/tests/PostService/PostService.Domain.Tests/CommentTests.cs +++ b/backend/tests/PostService/PostService.Domain.Tests/CommentTests.cs @@ -14,7 +14,6 @@ public void Constructor_ShouldInitializeFieldsCorrectly() var userId = Guid.NewGuid().ToString(); var username = "example"; var content = "Content"; - var createdAt = DateTime.UtcNow; // Act var comment = new Comment(postId, userId, username, content); @@ -24,7 +23,6 @@ public void Constructor_ShouldInitializeFieldsCorrectly() comment.UserId.Should().Be(userId); comment.Username.Should().Be(username); comment.Content.Should().Be(content); - comment.CreatedAt.Date.Should().Be(createdAt.Date); } [Fact] diff --git a/backend/tests/PostService/PostService.Domain.Tests/LikeTests.cs b/backend/tests/PostService/PostService.Domain.Tests/LikeTests.cs index abc8771..873cfc7 100644 --- a/backend/tests/PostService/PostService.Domain.Tests/LikeTests.cs +++ b/backend/tests/PostService/PostService.Domain.Tests/LikeTests.cs @@ -12,7 +12,6 @@ public void Constructor_ShouldInitializeFieldsCorrectly() // Arrange var postId = Guid.NewGuid(); var userId = Guid.NewGuid().ToString(); - var createdAt = DateTime.UtcNow; // Act var like = new Like(postId, userId); @@ -20,7 +19,6 @@ public void Constructor_ShouldInitializeFieldsCorrectly() // Assert like.PostId.Should().Be(postId); like.UserId.Should().Be(userId); - like.CreatedAt.Date.Should().Be(createdAt.Date); } [Fact] diff --git a/backend/tests/PostService/PostService.Domain.Tests/PostTests.cs b/backend/tests/PostService/PostService.Domain.Tests/PostTests.cs index 93a3adf..1fe2514 100644 --- a/backend/tests/PostService/PostService.Domain.Tests/PostTests.cs +++ b/backend/tests/PostService/PostService.Domain.Tests/PostTests.cs @@ -26,7 +26,6 @@ public void CreateTextPost_ShouldInitializeFieldsCorrectly() post.ContentType.Should().Be(ContentType.Text); post.LikeCount.Should().Be(0); post.CommentCount.Should().Be(0); - post.CreatedAt.Date.Should().Be(DateTime.UtcNow.Date); } [Fact] @@ -49,7 +48,6 @@ public void CreateImagePost_ShouldInitializeFieldsCorrectly() post.ContentType.Should().Be(ContentType.Image); post.LikeCount.Should().Be(0); post.CommentCount.Should().Be(0); - post.CreatedAt.Date.Should().Be(DateTime.UtcNow.Date); } [Fact] @@ -72,7 +70,6 @@ public void CreateVideoPost_ShouldInitializeFieldsCorrectly() post.ContentType.Should().Be(ContentType.Video); post.LikeCount.Should().Be(0); post.CommentCount.Should().Be(0); - post.CreatedAt.Date.Should().Be(DateTime.UtcNow.Date); } [Fact]