Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(#199) adding the reactions tests #200

Merged
merged 8 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build_microservices.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
test_dir: 'MiniSpace.Services.Organizations/tests'
- project: 'MiniSpace.Services.Posts/src/MiniSpace.Services.Posts.Api'
test_dir: 'MiniSpace.Services.Posts/tests'
- project: 'MiniSpace.Services.Reactions/src/MiniSpace.Services.Reactions.Api'
test_dir: 'MiniSpace.Services.Reactions/tests'
- project: 'MiniSpace.Web/src/MiniSpace.Web'
steps:
- uses: actions/checkout@v3
Expand Down
75 changes: 48 additions & 27 deletions MiniSpace.Services.Reactions/MiniSpace.Services.Reactions.sln
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{E78E3850-ECCC-443C-B325-9F13D1639D46}"
Project("{3d037f0c-67cd-45ad-b948-796556725ba1}") = "src", "src", "{e6ad26e8-28d9-4ad5-a725-bc0420c4a11e}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MiniSpace.Services.Reactions.Api", "src\MiniSpace.Services.Reactions.Api\MiniSpace.Services.Reactions.Api.csproj", "{05081A01-8BBE-4BB3-931C-4F33F78A7571}"
Project("{43649d59-f453-441c-8bf8-d49a10ade886}") = "MiniSpace.Services.Reactions.Api", "src\MiniSpace.Services.Reactions.Api\MiniSpace.Services.Reactions.Api.csproj", "{18b66777-ecb1-467d-9cc3-8259358cbbba}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MiniSpace.Services.Reactions.Application", "src\MiniSpace.Services.Reactions.Application\MiniSpace.Services.Reactions.Application.csproj", "{E122069F-329F-4400-8B3A-057BC704F5FC}"
Project("{43649d59-f453-441c-8bf8-d49a10ade886}") = "MiniSpace.Services.Reactions.Application", "src\MiniSpace.Services.Reactions.Application\MiniSpace.Services.Reactions.Application.csproj", "{d80f3f9e-14fa-49ab-83a9-182583dad2f7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MiniSpace.Services.Reactions.Core", "src\MiniSpace.Services.Reactions.Core\MiniSpace.Services.Reactions.Core.csproj", "{6B7F5638-AC31-482B-B806-D7AE537D0A10}"
Project("{43649d59-f453-441c-8bf8-d49a10ade886}") = "MiniSpace.Services.Reactions.Core", "src\MiniSpace.Services.Reactions.Core\MiniSpace.Services.Reactions.Core.csproj", "{a8fc1492-3d9c-4e35-99bf-ffda61450adb}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MiniSpace.Services.Reactions.Infrastructure", "src\MiniSpace.Services.Reactions.Infrastructure\MiniSpace.Services.Reactions.Infrastructure.csproj", "{DC4D92C4-18F6-463B-BD20-C9BEE5F9267F}"
Project("{43649d59-f453-441c-8bf8-d49a10ade886}") = "MiniSpace.Services.Reactions.Infrastructure", "src\MiniSpace.Services.Reactions.Infrastructure\MiniSpace.Services.Reactions.Infrastructure.csproj", "{222dd1d9-d8bc-41c5-93b8-f8199287ba68}"
EndProject
Project("{43649d59-f453-441c-8bf8-d49a10ade886}") = "MiniSpace.Services.Reactions.Application.UnitTests", "tests\MiniSpace.Services.Reactions.Application.UnitTests\MiniSpace.Services.Reactions.Application.UnitTests.csproj", "{be268176-f843-4500-bcf6-80aea4a6320a}"
EndProject
Project("{43649d59-f453-441c-8bf8-d49a10ade886}") = "MiniSpace.Services.Reactions.Core.UnitTests", "tests\MiniSpace.Services.Reactions.Core.UnitTests\MiniSpace.Services.Reactions.Core.UnitTests.csproj", "{fa017319-e08b-4b07-b275-b0e11a74d975}"
EndProject
Project("{43649d59-f453-441c-8bf8-d49a10ade886}") = "MiniSpace.Services.Reactions.Infrastructure.UnitTests", "tests\MiniSpace.Services.Reactions.Infrastructure.UnitTests\MiniSpace.Services.Reactions.Infrastructure.UnitTests.csproj", "{287b6364-298e-4f8e-8f12-511b5f7daa40}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -22,27 +28,42 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{05081A01-8BBE-4BB3-931C-4F33F78A7571}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{05081A01-8BBE-4BB3-931C-4F33F78A7571}.Debug|Any CPU.Build.0 = Debug|Any CPU
{05081A01-8BBE-4BB3-931C-4F33F78A7571}.Release|Any CPU.ActiveCfg = Release|Any CPU
{05081A01-8BBE-4BB3-931C-4F33F78A7571}.Release|Any CPU.Build.0 = Release|Any CPU
{E122069F-329F-4400-8B3A-057BC704F5FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E122069F-329F-4400-8B3A-057BC704F5FC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E122069F-329F-4400-8B3A-057BC704F5FC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E122069F-329F-4400-8B3A-057BC704F5FC}.Release|Any CPU.Build.0 = Release|Any CPU
{6B7F5638-AC31-482B-B806-D7AE537D0A10}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6B7F5638-AC31-482B-B806-D7AE537D0A10}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6B7F5638-AC31-482B-B806-D7AE537D0A10}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6B7F5638-AC31-482B-B806-D7AE537D0A10}.Release|Any CPU.Build.0 = Release|Any CPU
{DC4D92C4-18F6-463B-BD20-C9BEE5F9267F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DC4D92C4-18F6-463B-BD20-C9BEE5F9267F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DC4D92C4-18F6-463B-BD20-C9BEE5F9267F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DC4D92C4-18F6-463B-BD20-C9BEE5F9267F}.Release|Any CPU.Build.0 = Release|Any CPU
{18b66777-ecb1-467d-9cc3-8259358cbbba}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{18b66777-ecb1-467d-9cc3-8259358cbbba}.Debug|Any CPU.Build.0 = Debug|Any CPU
{18b66777-ecb1-467d-9cc3-8259358cbbba}.Release|Any CPU.ActiveCfg = Release|Any CPU
{18b66777-ecb1-467d-9cc3-8259358cbbba}.Release|Any CPU.Build.0 = Release|Any CPU
{d80f3f9e-14fa-49ab-83a9-182583dad2f7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{d80f3f9e-14fa-49ab-83a9-182583dad2f7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{d80f3f9e-14fa-49ab-83a9-182583dad2f7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{d80f3f9e-14fa-49ab-83a9-182583dad2f7}.Release|Any CPU.Build.0 = Release|Any CPU
{a8fc1492-3d9c-4e35-99bf-ffda61450adb}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{a8fc1492-3d9c-4e35-99bf-ffda61450adb}.Debug|Any CPU.Build.0 = Debug|Any CPU
{a8fc1492-3d9c-4e35-99bf-ffda61450adb}.Release|Any CPU.ActiveCfg = Release|Any CPU
{a8fc1492-3d9c-4e35-99bf-ffda61450adb}.Release|Any CPU.Build.0 = Release|Any CPU
{222dd1d9-d8bc-41c5-93b8-f8199287ba68}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{222dd1d9-d8bc-41c5-93b8-f8199287ba68}.Debug|Any CPU.Build.0 = Debug|Any CPU
{222dd1d9-d8bc-41c5-93b8-f8199287ba68}.Release|Any CPU.ActiveCfg = Release|Any CPU
{222dd1d9-d8bc-41c5-93b8-f8199287ba68}.Release|Any CPU.Build.0 = Release|Any CPU
{be268176-f843-4500-bcf6-80aea4a6320a}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{be268176-f843-4500-bcf6-80aea4a6320a}.Debug|Any CPU.Build.0 = Debug|Any CPU
{be268176-f843-4500-bcf6-80aea4a6320a}.Release|Any CPU.ActiveCfg = Release|Any CPU
{be268176-f843-4500-bcf6-80aea4a6320a}.Release|Any CPU.Build.0 = Release|Any CPU
{fa017319-e08b-4b07-b275-b0e11a74d975}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{fa017319-e08b-4b07-b275-b0e11a74d975}.Debug|Any CPU.Build.0 = Debug|Any CPU
{fa017319-e08b-4b07-b275-b0e11a74d975}.Release|Any CPU.ActiveCfg = Release|Any CPU
{fa017319-e08b-4b07-b275-b0e11a74d975}.Release|Any CPU.Build.0 = Release|Any CPU
{287b6364-298e-4f8e-8f12-511b5f7daa40}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{287b6364-298e-4f8e-8f12-511b5f7daa40}.Debug|Any CPU.Build.0 = Debug|Any CPU
{287b6364-298e-4f8e-8f12-511b5f7daa40}.Release|Any CPU.ActiveCfg = Release|Any CPU
{287b6364-298e-4f8e-8f12-511b5f7daa40}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{05081A01-8BBE-4BB3-931C-4F33F78A7571} = {E78E3850-ECCC-443C-B325-9F13D1639D46}
{E122069F-329F-4400-8B3A-057BC704F5FC} = {E78E3850-ECCC-443C-B325-9F13D1639D46}
{6B7F5638-AC31-482B-B806-D7AE537D0A10} = {E78E3850-ECCC-443C-B325-9F13D1639D46}
{DC4D92C4-18F6-463B-BD20-C9BEE5F9267F} = {E78E3850-ECCC-443C-B325-9F13D1639D46}
{18b66777-ecb1-467d-9cc3-8259358cbbba} = {e6ad26e8-28d9-4ad5-a725-bc0420c4a11e}
{d80f3f9e-14fa-49ab-83a9-182583dad2f7} = {e6ad26e8-28d9-4ad5-a725-bc0420c4a11e}
{a8fc1492-3d9c-4e35-99bf-ffda61450adb} = {e6ad26e8-28d9-4ad5-a725-bc0420c4a11e}
{222dd1d9-d8bc-41c5-93b8-f8199287ba68} = {e6ad26e8-28d9-4ad5-a725-bc0420c4a11e}
{be268176-f843-4500-bcf6-80aea4a6320a} = {e6ad26e8-28d9-4ad5-a725-bc0420c4a11e}
{fa017319-e08b-4b07-b275-b0e11a74d975} = {e6ad26e8-28d9-4ad5-a725-bc0420c4a11e}
{287b6364-298e-4f8e-8f12-511b5f7daa40} = {e6ad26e8-28d9-4ad5-a725-bc0420c4a11e}
EndGlobalSection
EndGlobal
EndGlobal
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@

using System.Diagnostics.CodeAnalysis;
using MiniSpace.Services.Reactions.Core.Entities;

namespace MiniSpace.Services.Reactions.Application.Dto
{
[ExcludeFromCodeCoverage]
public class ReactionDto
{
public Guid Id { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@

using System.Diagnostics.CodeAnalysis;
using MiniSpace.Services.Reactions.Core.Entities;

namespace MiniSpace.Services.Reactions.Application.Dto
{
[ExcludeFromCodeCoverage]
public class ReactionsSummaryDto(int nrReactions, ReactionType? dominant,
Guid? authUserReactionId, ReactionType? authUserReactionType)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public async Task HandleAsync(PostCreated @event, CancellationToken cancellation
{
if (await _postRepository.ExistsAsync(@event.PostId))
{
throw new StudentAlreadyAddedException(@event.PostId);
throw new PostAlreadyAddedException(@event.PostId);
}

await _postRepository.AddAsync(new Post(@event.PostId));
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace MiniSpace.Services.Reactions.Application.Exceptions
{
public class PostAlreadyAddedException : AppException
{
public override string Code { get; } = "post_already_added";
public Guid PostId { get; }

Check warning on line 6 in MiniSpace.Services.Reactions/src/MiniSpace.Services.Reactions.Application/Exceptions/PostAlreadyAddedException.cs

View check run for this annotation

Codecov / codecov/patch

MiniSpace.Services.Reactions/src/MiniSpace.Services.Reactions.Application/Exceptions/PostAlreadyAddedException.cs#L6

Added line #L6 was not covered by tests

public PostAlreadyAddedException(Guid postId)
: base($"Post with id: {postId} was already added.")
{
PostId = postId;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
using System.Diagnostics.CodeAnalysis;
using Convey;
using Convey.CQRS.Commands;
using Convey.CQRS.Events;

namespace MiniSpace.Services.Reactions.Application
{
[ExcludeFromCodeCoverage]
public static class Extensions
{
public static IConveyBuilder AddApplication(this IConveyBuilder builder)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@

using System.Diagnostics.CodeAnalysis;
using Convey.CQRS.Queries;
using MiniSpace.Services.Reactions.Application.Dto;
using MiniSpace.Services.Reactions.Core.Entities;

namespace MiniSpace.Services.Reactions.Application.Queries
{
[ExcludeFromCodeCoverage]
public class GetReactions : IQuery<IEnumerable<ReactionDto>>
{
public Guid ContentId { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@

using System.Diagnostics.CodeAnalysis;
using Convey.CQRS.Queries;
using MiniSpace.Services.Reactions.Application.Dto;
using MiniSpace.Services.Reactions.Core.Entities;
using MiniSpace.Services.Reactions.Core.Exceptions;

namespace MiniSpace.Services.Reactions.Application.Queries
{
[ExcludeFromCodeCoverage]
public class GetReactionsSummary : IQuery<ReactionsSummaryDto>
{
public Guid ContentId { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System.Diagnostics.CodeAnalysis;
using MiniSpace.Services.Reactions.Application;

namespace MiniSpace.Services.Reactions.Infrastructure.Contexts
{
[ExcludeFromCodeCoverage]
internal class AppContext : IAppContext
{
public string RequestId { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
using Microsoft.AspNetCore.Http;
using Newtonsoft.Json;
using MiniSpace.Services.Reactions.Application;
using System.Diagnostics.CodeAnalysis;

namespace MiniSpace.Services.Reactions.Infrastructure.Contexts
{
[ExcludeFromCodeCoverage]
internal sealed class AppContextFactory : IAppContextFactory
{
private readonly ICorrelationContextAccessor _contextAccessor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
using System.Diagnostics.CodeAnalysis;

namespace MiniSpace.Services.Reactions.Infrastructure.Contexts
{
[ExcludeFromCodeCoverage]
internal class CorrelationContext
{
public string CorrelationId { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System.Diagnostics.CodeAnalysis;
using MiniSpace.Services.Reactions.Application;

namespace MiniSpace.Services.Reactions.Infrastructure.Contexts
{
[ExcludeFromCodeCoverage]
internal class IdentityContext : IIdentityContext
{
public Guid Id { get; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
using System.Diagnostics.CodeAnalysis;
using Convey.CQRS.Commands;
using Convey.MessageBrokers;
using Convey.MessageBrokers.Outbox;
using Convey.Types;

namespace MiniSpace.Services.Reactions.Infrastructure.Decorators
{
[ExcludeFromCodeCoverage]
[Decorator]
internal sealed class OutboxCommandHandlerDecorator<TCommand> : ICommandHandler<TCommand>
where TCommand : class, ICommand
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
using System.Diagnostics.CodeAnalysis;
using Convey.CQRS.Events;
using Convey.MessageBrokers;
using Convey.MessageBrokers.Outbox;
using Convey.Types;

namespace MiniSpace.Services.Reactions.Infrastructure.Decorators
{
[ExcludeFromCodeCoverage]
[Decorator]
internal sealed class OutboxEventHandlerDecorator<TEvent> : IEventHandler<TEvent>
where TEvent : class, IEvent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Diagnostics.CodeAnalysis;
using Convey.MessageBrokers.RabbitMQ;
using MiniSpace.Services.Reactions.Application.Commands;
using MiniSpace.Services.Reactions.Application.Events.Rejected;
Expand All @@ -8,6 +9,7 @@

namespace MiniSpace.Services.Reactions.Infrastructure.Exceptions
{
[ExcludeFromCodeCoverage]
internal sealed class ExceptionToMessageMapper : IExceptionToMessageMapper
{
public object Map(Exception exception, object message)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Concurrent;
using System.Diagnostics.CodeAnalysis;
using System.Net;
using Convey;
using Convey.WebApi.Exceptions;
Expand All @@ -7,6 +8,7 @@

namespace MiniSpace.Services.Reactions.Infrastructure.Exceptions
{
[ExcludeFromCodeCoverage]
internal sealed class ExceptionToResponseMapper : IExceptionToResponseMapper
{
private static readonly ConcurrentDictionary<Type, string> Codes = new ConcurrentDictionary<Type, string>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@
using Convey.Logging.CQRS;
using MiniSpace.Services.Reactions.Application.Events;
using MiniSpace.Services.Reactions.Application.Events.External;
using System.Diagnostics.CodeAnalysis;

namespace MiniSpace.Services.Reactions.Infrastructure
{
[ExcludeFromCodeCoverage]
public static class Extensions
{
public static IConveyBuilder AddInfrastructure(this IConveyBuilder builder)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
using System.Diagnostics.CodeAnalysis;
using Convey;
using Convey.Logging.CQRS;
using Microsoft.Extensions.DependencyInjection;
using MiniSpace.Services.Reactions.Application.Commands;

namespace MiniSpace.Services.Reactions.Infrastructure.Logging
{
[ExcludeFromCodeCoverage]
internal static class Extensions
{
public static IConveyBuilder AddHandlersLogging(this IConveyBuilder builder)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
using System.Diagnostics.CodeAnalysis;
using Convey.Logging.CQRS;
using MiniSpace.Services.Reactions.Application.Commands;
using MiniSpace.Services.Reactions.Application.Events;
using MiniSpace.Services.Reactions.Application.Events.External;

namespace MiniSpace.Services.Reactions.Infrastructure.Logging
{
[ExcludeFromCodeCoverage]
internal sealed class MessageToLogTemplateMapper : IMessageToLogTemplateMapper
{
private static IReadOnlyDictionary<Type, HandlerLogTemplate> MessageTemplates
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System.Diagnostics.CodeAnalysis;
using Convey.Types;

namespace MiniSpace.Services.Reactions.Infrastructure.Mongo.Documents
{
[ExcludeFromCodeCoverage]
public class EventDocument : IIdentifiable<Guid>
{
public Guid Id { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
using System.Diagnostics.CodeAnalysis;
using MiniSpace.Services.Reactions.Application.Dto;
using MiniSpace.Services.Reactions.Core.Entities;

namespace MiniSpace.Services.Reactions.Infrastructure.Mongo.Documents
{
[ExcludeFromCodeCoverage]
public static class Extensions
{
public static Reaction AsEntity(this ReactionDocument document)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System.Diagnostics.CodeAnalysis;
using Convey.Types;

namespace MiniSpace.Services.Reactions.Infrastructure.Mongo.Documents
{
[ExcludeFromCodeCoverage]
public class PostDocument : IIdentifiable<Guid>
{
public Guid Id { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
using System.Diagnostics.CodeAnalysis;
using Convey.Types;
using Convey.WebApi.CQRS;
using MiniSpace.Services.Reactions.Core.Entities;

namespace MiniSpace.Services.Reactions.Infrastructure.Mongo.Documents
{
[ExcludeFromCodeCoverage]
public class ReactionDocument : IIdentifiable<Guid>
{
public Guid Id {get;set;}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System.Diagnostics.CodeAnalysis;
using Convey.Types;

namespace MiniSpace.Services.Reactions.Infrastructure.Mongo.Documents
{
[ExcludeFromCodeCoverage]
public class StudentDocument : IIdentifiable<Guid>
{
public Guid Id { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Diagnostics.CodeAnalysis;
using Convey.CQRS.Queries;
using Convey.Persistence.MongoDB;
using DnsClient;
Expand All @@ -10,6 +11,7 @@

namespace MiniSpace.Services.Reactions.Infrastructure.Mongo.Queries.Handlers
{
[ExcludeFromCodeCoverage]
public class GetReactionsHandler : IQueryHandler<GetReactions, IEnumerable<ReactionDto>>
{
private readonly IMongoRepository<ReactionDocument, Guid> _reactionRepository;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Diagnostics.CodeAnalysis;
using Convey.CQRS.Queries;
using Convey.Persistence.MongoDB;
using MiniSpace.Services.Reactions.Application;
Expand All @@ -10,6 +11,7 @@

namespace MiniSpace.Services.Reactions.Infrastructure.Mongo.Queries.Handlers
{
[ExcludeFromCodeCoverage]
public class GetReactionsSummaryHandler : IQueryHandler<GetReactionsSummary, ReactionsSummaryDto>
{
private readonly IMongoRepository<ReactionDocument, Guid> _reactionRepository;
Expand Down
Loading
Loading