-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #192 from SaintAngeLs/posts_service_tests
(#149) posts service tests
- Loading branch information
Showing
88 changed files
with
1,770 additions
and
526 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ations.Api/obj/Debug/net8.0/MiniSpace.Services.Notifications.Api.AssemblyInfoInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2d6a02b206ac77283cc075e6254c51c91df1cc844dbe932e799219bd1858d708 | ||
31d3d94a6fa27c086d9707313d1f0be1fb13fd6bcd249b38361e7fac38610470 |
Binary file modified
BIN
-4.99 KB
(91%)
....Api/obj/Debug/net8.0/MiniSpace.Services.Notifications.Api.csproj.AssemblyReference.cache
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...on/obj/Debug/net8.0/MiniSpace.Services.Notifications.Application.AssemblyInfoInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
72ac1d3825741bd508e9ff6ffaf58fa81268523d2a753710d887fc83a9d80b9a | ||
8b3e043d4a8610c77bcbe2160d6b95b7942634686dac3d3841cdef59e617bd04 |
Binary file modified
BIN
-277 Bytes
(91%)
.../Debug/net8.0/MiniSpace.Services.Notifications.Application.csproj.AssemblyReference.cache
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ions.Core/obj/Debug/net8.0/MiniSpace.Services.Notifications.Core.AssemblyInfoInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
af7e27a1b036cf20b19f769f736410eb4de82166981876644172854c53396ed6 | ||
5dd7b0640cf1bb26d53f06d7da4a1fccb31b33f3ce01be304f8a958930eaee66 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...obj/Debug/net8.0/MiniSpace.Services.Notifications.Infrastructure.AssemblyInfoInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
06935d4026aba0069abdca20ba9959a7f7e14e8e87a965f3b7301324f870eec5 | ||
1cdfc024d737e449203c0f0f3550021dfc68bcff58a6f7d5947cc08a0083e939 |
Binary file modified
BIN
-1.18 KB
(98%)
...bug/net8.0/MiniSpace.Services.Notifications.Infrastructure.csproj.AssemblyReference.cache
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
MiniSpace.Services.Posts/src/MiniSpace.Services.Posts.Application/Commands/SearchPosts.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
MiniSpace.Services.Posts/src/MiniSpace.Services.Posts.Application/Dto/PageableDto.cs
This file was deleted.
Oops, something went wrong.
22 changes: 3 additions & 19 deletions
22
MiniSpace.Services.Posts/src/MiniSpace.Services.Posts.Application/Dto/PostDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,18 @@ | ||
using MiniSpace.Services.Posts.Core.Entities; | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace MiniSpace.Services.Posts.Application.Dto | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
public class PostDto | ||
{ | ||
public Guid Id { get; set; } | ||
public Guid EventId { get; set; } | ||
public Guid OrganizerId { get; set; } | ||
public string TextContent { get; set; } | ||
public IEnumerable<Guid> MediaFiles { get; set; } | ||
public string MediaContent { get; set; } | ||
public string State { get; set; } | ||
public DateTime? PublishDate { get; set; } | ||
public DateTime CreatedAt { get; set; } | ||
public DateTime? UpdatedAt { get; set; } | ||
|
||
public PostDto() | ||
{ | ||
} | ||
|
||
public PostDto(Post post) | ||
{ | ||
Id = post.Id; | ||
EventId = post.EventId; | ||
OrganizerId = post.OrganizerId; | ||
TextContent = post.TextContent; | ||
MediaFiles = post.MediaFiles; | ||
State = post.State.ToString(); | ||
PublishDate = post.PublishDate; | ||
CreatedAt = post.CreatedAt; | ||
UpdatedAt = post.UpdatedAt; | ||
} | ||
} | ||
} |
8 changes: 0 additions & 8 deletions
8
MiniSpace.Services.Posts/src/MiniSpace.Services.Posts.Application/Dto/SortDto.cs
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
MiniSpace.Services.Posts/src/MiniSpace.Services.Posts.Application/Dto/StudentEventsDto.cs
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
.../MiniSpace.Services.Posts.Application/Events/External/Handlers/MediaFileDeletedHandler.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.