Website Summary Files Commits Branches @commit @diff @stats
path: root / src / DevHive.Data / Interfaces / Repositories
diff options
context:
space:
mode:
Commite01a81954e0fba2c4521e03a76f48a970a87994f (patch)
Author
 transtrike <transtrike@gmail.com>
2021-01-23 22:34:43 +0200
Committer
 transtrike <transtrike@gmail.com>
2021-01-23 22:34:43 +0200
Filesd2fdacbed68de0f4f32b1d949d75bc1de9f861d3 /src/DevHive.Data/Interfaces/Repositories
DevHive-e01a81954e0fba2c4521e03a76f48a970a87994f.tar
DevHive-e01a81954e0fba2c4521e03a76f48a970a87994f.tar.gz
DevHive-e01a81954e0fba2c4521e03a76f48a970a87994f.zip
Parentfac1bf2d1772e60cbecc1cf0381c6063a0e97ffd (diff)
All Post&Comment Implemented; Initializing testing...
diff --git a/src/DevHive.Data/Interfaces/Repositories/ICommentRepository.cs b/src/DevHive.Data/Interfaces/Repositories/ICommentRepository.cs
new file mode 100644
index 0000000..b80c5a0
--- /dev/null
+++ b/src/DevHive.Data/Interfaces/Repositories/ICommentRepository.cs
@@ -0,0 +1,13 @@
+using System;
+using System.Threading.Tasks;
+using DevHive.Data.Models;
+using DevHive.Data.Repositories.Interfaces;
+
+namespace DevHive.Data.Interfaces.Repositories
+{
+ public interface ICommentRepository : IRepository<Comment>
+ {
+ Task<bool> DoesCommentExist(Guid id);
+ Task<Comment> GetCommentByIssuerAndTimeCreatedAsync(Guid issuerId, DateTime timeCreated);
+ }
+}
diff --git a/src/DevHive.Data/Interfaces/Repositories/IPostRepository.cs b/src/DevHive.Data/Interfaces/Repositories/IPostRepository.cs
index 7a9c02e..aa0afc7 100644
--- a/src/DevHive.Data/Interfaces/Repositories/IPostRepository.cs
+++ b/src/DevHive.Data/Interfaces/Repositories/IPostRepository.cs
@@ -7,18 +7,7 @@ namespace DevHive.Data.Interfaces.Repositories
{
public interface IPostRepository : IRepository<Post>
{
- Task<bool> AddCommentAsync(Comment entity);
-
- Task<Post> GetPostByIssuerAndTimeCreatedAsync(Guid issuerId, DateTime timeCreated);
-
- Task<Comment> GetCommentByIdAsync(Guid id);
- Task<Comment> GetCommentByIssuerAndTimeCreatedAsync(Guid issuerId, DateTime timeCreated);
-
- Task<bool> EditCommentAsync(Comment newEntity);
-
- Task<bool> DeleteCommentAsync(Comment entity);
- Task<bool> DoesCommentExist(Guid id);
-
+ Task<Post> GetPostByCreatorAndTimeCreatedAsync(Guid issuerId, DateTime timeCreated);
Task<bool> DoesPostExist(Guid postId);
}
}