Skip to content

Commit 63b228b

Browse files
authored
Merge pull request #175 from SaintAngeLs/comments_test
(#148) Comments tests new PR
2 parents b96ddb6 + 060d22a commit 63b228b

File tree

586 files changed

+265181
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

586 files changed

+265181
-7
lines changed

.github/workflows/build_microservices.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: .NET MiniSpace Microservice build & integration
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
pull_request:
48

59
jobs:
610
build-and-test:
@@ -12,12 +16,16 @@ jobs:
1216
- project: 'MiniSpace.APIGateway/src/MiniSpace.APIGateway'
1317
- project: 'MiniSpace.Services.Identity/src/MiniSpace.Services.Identity.Api'
1418
test_dir: 'MiniSpace.Services.Identity/tests'
19+
- project: 'MiniSpace.Services.Comments/src/MiniSpace.Services.Comments.Api'
20+
test_dir: 'MiniSpace.Services.Comments/tests'
1521
- project: 'MiniSpace.Web/src/MiniSpace.Web'
1622
steps:
17-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v3
24+
with:
25+
fetch-depth: 0
1826

1927
- name: Setup .NET 8.0.x
20-
uses: actions/setup-dotnet@v1
28+
uses: actions/setup-dotnet@v2
2129
with:
2230
dotnet-version: '8.0.x'
2331

@@ -46,4 +54,5 @@ jobs:
4654
token: ${{ secrets.CODECOV_TOKEN }}
4755
files: '**/coverage.cobertura.xml'
4856
slug: SaintAngeLs/p_software_engineering_2
49-
57+
commit: ${{ github.event.pull_request.base.sha }}
58+
# fail_ci_if_error: true

MiniSpace.Services.Comments/MiniSpace.Services.Comments.sln

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MiniSpace.Services.Comments
1111
EndProject
1212
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MiniSpace.Services.Comments.Infrastructure", "src\MiniSpace.Services.Comments.Infrastructure\MiniSpace.Services.Comments.Infrastructure.csproj", "{85941F19-E28E-467B-A338-7D358D32CFC8}"
1313
EndProject
14+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MiniSpace.Services.Comments.Application.UnitTests", "tests\MiniSpace.Services.Comments.Application.UnitTests\MiniSpace.Services.Comments.Application.UnitTests.csproj", "{63DF71AF-1D31-4A4D-8127-9B8EB359889D}"
15+
EndProject
16+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MiniSpace.Services.Comments.Core.UnitTests", "tests\MiniSpace.Services.Comments.Core.UnitTests\MiniSpace.Services.Comments.Core.UnitTests.csproj", "{C0DE6BE3-4EE5-4DB5-A170-57351B19AAF8}"
17+
EndProject
18+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MiniSpace.Services.Comments.Infrastructure.UnitTests", "tests\MiniSpace.Services.Comments.Infrastructure.UnitTests\MiniSpace.Services.Comments.Infrastructure.UnitTests.csproj", "{81D7C37A-34BE-43BB-9709-0A866D67F8EB}"
19+
EndProject
1420
Global
1521
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1622
Debug|Any CPU = Debug|Any CPU
@@ -33,6 +39,18 @@ Global
3339
{85941F19-E28E-467B-A338-7D358D32CFC8}.Debug|Any CPU.Build.0 = Debug|Any CPU
3440
{85941F19-E28E-467B-A338-7D358D32CFC8}.Release|Any CPU.ActiveCfg = Release|Any CPU
3541
{85941F19-E28E-467B-A338-7D358D32CFC8}.Release|Any CPU.Build.0 = Release|Any CPU
42+
{63DF71AF-1D31-4A4D-8127-9B8EB359889D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
43+
{63DF71AF-1D31-4A4D-8127-9B8EB359889D}.Debug|Any CPU.Build.0 = Debug|Any CPU
44+
{63DF71AF-1D31-4A4D-8127-9B8EB359889D}.Release|Any CPU.ActiveCfg = Release|Any CPU
45+
{63DF71AF-1D31-4A4D-8127-9B8EB359889D}.Release|Any CPU.Build.0 = Release|Any CPU
46+
{C0DE6BE3-4EE5-4DB5-A170-57351B19AAF8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
47+
{C0DE6BE3-4EE5-4DB5-A170-57351B19AAF8}.Debug|Any CPU.Build.0 = Debug|Any CPU
48+
{C0DE6BE3-4EE5-4DB5-A170-57351B19AAF8}.Release|Any CPU.ActiveCfg = Release|Any CPU
49+
{C0DE6BE3-4EE5-4DB5-A170-57351B19AAF8}.Release|Any CPU.Build.0 = Release|Any CPU
50+
{81D7C37A-34BE-43BB-9709-0A866D67F8EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
51+
{81D7C37A-34BE-43BB-9709-0A866D67F8EB}.Debug|Any CPU.Build.0 = Debug|Any CPU
52+
{81D7C37A-34BE-43BB-9709-0A866D67F8EB}.Release|Any CPU.ActiveCfg = Release|Any CPU
53+
{81D7C37A-34BE-43BB-9709-0A866D67F8EB}.Release|Any CPU.Build.0 = Release|Any CPU
3654
EndGlobalSection
3755
GlobalSection(SolutionProperties) = preSolution
3856
HideSolutionNode = FALSE

MiniSpace.Services.Comments/src/MiniSpace.Services.Comments.Application/Dto/CommentDto.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
using System;
22
using System.Collections.Generic;
3+
using System.Diagnostics.CodeAnalysis;
34
using System.Linq;
45
using MiniSpace.Services.Comments.Core.Entities;
56

67
namespace MiniSpace.Services.Comments.Application.Dto
78
{
9+
[ExcludeFromCodeCoverage]
810
public class CommentDto
911
{
1012
public Guid Id { get; set; }

MiniSpace.Services.Comments/src/MiniSpace.Services.Comments.Application/Dto/PageableDto.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
namespace MiniSpace.Services.Comments.Application.Dto
1+
using System.Diagnostics.CodeAnalysis;
2+
3+
namespace MiniSpace.Services.Comments.Application.Dto
24
{
5+
[ExcludeFromCodeCoverage]
36
public class PageableDto
47
{
58
public int Page { get; set; }

MiniSpace.Services.Comments/src/MiniSpace.Services.Comments.Application/Dto/SortDto.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
using System.Collections.Generic;
2+
using System.Diagnostics.CodeAnalysis;
23

34
namespace MiniSpace.Services.Comments.Application.Dto
45
{
6+
[ExcludeFromCodeCoverage]
57
public class SortDto
68
{
79
public IEnumerable<string> SortBy { get; set; }

MiniSpace.Services.Comments/src/MiniSpace.Services.Comments.Core/Wrappers/PagedResponse.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
namespace MiniSpace.Services.Comments.Application.Wrappers
1+
using System.Diagnostics.CodeAnalysis;
2+
3+
namespace MiniSpace.Services.Comments.Application.Wrappers
24
{
5+
[ExcludeFromCodeCoverage]
36
public class PagedResponse<T> : Response<T>
47
{
58
public int TotalPages { get; }

MiniSpace.Services.Comments/src/MiniSpace.Services.Comments.Core/Wrappers/Response.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
namespace MiniSpace.Services.Comments.Application.Wrappers
1+
using System.Diagnostics.CodeAnalysis;
2+
3+
namespace MiniSpace.Services.Comments.Application.Wrappers
24
{
5+
[ExcludeFromCodeCoverage]
36
public class Response<T>
47
{
58
public T Content { get; set; }

MiniSpace.Services.Comments/src/MiniSpace.Services.Comments.Infrastructure/Contexts/IdentityContext.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
using MiniSpace.Services.Comments.Application;
2+
using System.Runtime.CompilerServices;
3+
4+
[assembly: InternalsVisibleTo("MiniSpace.Services.Comments.Application.UnitTests")]
25

36
namespace MiniSpace.Services.Comments.Infrastructure.Contexts
47
{

MiniSpace.Services.Comments/src/MiniSpace.Services.Comments.Infrastructure/Decorators/OutboxCommandHandlerDecorator.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
using Convey.MessageBrokers;
33
using Convey.MessageBrokers.Outbox;
44
using Convey.Types;
5+
using System.Diagnostics.CodeAnalysis;
56

67
namespace MiniSpace.Services.Comments.Infrastructure.Decorators
78
{
9+
[ExcludeFromCodeCoverage]
810
[Decorator]
911
internal sealed class OutboxCommandHandlerDecorator<TCommand> : ICommandHandler<TCommand>
1012
where TCommand : class, ICommand

MiniSpace.Services.Comments/src/MiniSpace.Services.Comments.Infrastructure/Decorators/OutboxEventHandlerDecorator.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
using Convey.MessageBrokers;
33
using Convey.MessageBrokers.Outbox;
44
using Convey.Types;
5+
using System.Diagnostics.CodeAnalysis;
56

67
namespace MiniSpace.Services.Comments.Infrastructure.Decorators
78
{
9+
[ExcludeFromCodeCoverage]
810
[Decorator]
911
internal sealed class OutboxEventHandlerDecorator<TEvent> : IEventHandler<TEvent>
1012
where TEvent : class, IEvent

0 commit comments

Comments
 (0)