Browse Source

Excluding ChatHub from code coverage

feature/mongo-services-with-interfaces
Ermin Bronja 3 years ago
parent
commit
f6124f31e2

+ 2
- 0
Backend/Diligent.WebAPI.Host/Hubs/ChatHub.cs View File

@@ -7,9 +7,11 @@ using MediatR;
using Microsoft.AspNetCore.SignalR;
using Diligent.WebAPI.Host.Middlewares;
using Diligent.WebAPI.Host.Mediator.Rooms.Commands;
using System.Diagnostics.CodeAnalysis;

namespace Diligent.WebAPI.Host.Hubs
{
[ExcludeFromCodeCoverage]
public class ChatHub : Hub<IChatClient>
{
private readonly IDictionary<string, UserConnection> _connections;

+ 4
- 1
Backend/Diligent.WebAPI.Host/Hubs/ChatMessage.cs View File

@@ -1,5 +1,8 @@
namespace Diligent.WebAPI.Host.Hubs
using System.Diagnostics.CodeAnalysis;

namespace Diligent.WebAPI.Host.Hubs
{
[ExcludeFromCodeCoverage]
public class ChatMessage
{
public string? UserId { get; set; }

+ 5
- 1
Backend/Diligent.WebAPI.Host/Hubs/TypingMessage.cs View File

@@ -1,11 +1,15 @@
namespace Diligent.WebAPI.Host.Hubs
using System.Diagnostics.CodeAnalysis;

namespace Diligent.WebAPI.Host.Hubs
{
[ExcludeFromCodeCoverage]
public class TypingInvokeMessage
{
public string ConnId { get; set; }
public string RoomId { get; set; }
public string Message { get; set; }
}
[ExcludeFromCodeCoverage]
public class TypingMessage
{
public string Message { get; set; }

+ 5
- 1
Backend/Diligent.WebAPI.Host/Hubs/UserConnection.cs View File

@@ -1,10 +1,14 @@
namespace Diligent.WebAPI.Host.Hubs
using System.Diagnostics.CodeAnalysis;

namespace Diligent.WebAPI.Host.Hubs
{
[ExcludeFromCodeCoverage]
public class UserStatus
{
public string UserId { get; set; }
public string Mode { get; set; }
}
[ExcludeFromCodeCoverage]
public class UserConnection : UserStatus
{
public string Username { get; set; }

+ 2
- 0
Backend/Diligent.WebAPI.Host/Mediator/Rooms/Handlers/CreateRoomHandler.cs View File

@@ -2,9 +2,11 @@
using Diligent.WebAPI.Business.Services;
using Diligent.WebAPI.Host.Mediator.Rooms.Commands;
using MediatR;
using System.Diagnostics.CodeAnalysis;

namespace Diligent.WebAPI.Host.Mediator.Chat.Handlers
{
[ExcludeFromCodeCoverage]
public class CreateRoomHandler : IRequestHandler<CreateRoomCommand, Unit>
{
private readonly IRoomRepository _roomRepository;

+ 2
- 0
Backend/Diligent.WebAPI.Host/Mediator/Rooms/Handlers/GetRoomsWhichSupportCreatedHandler.cs View File

@@ -3,9 +3,11 @@ using Diligent.WebAPI.Business.Services;
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Host.Mediator.Rooms.Queries;
using MediatR;
using System.Diagnostics.CodeAnalysis;

namespace Diligent.WebAPI.Host.Mediator.Chat.Handlers
{
[ExcludeFromCodeCoverage]
public class GetRoomsWhichSupportCreatedHandler : IRequestHandler<GetRoomsWhichSupportCreatedQuery, List<Room>>
{
private readonly IRoomRepository _roomRepository;

BIN
Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Business.dll View File


BIN
Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Business.pdb View File


BIN
Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Data.dll View File


BIN
Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Data.pdb View File


BIN
Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Host.dll View File


BIN
Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Host.pdb View File


BIN
Backend/Tests/bin/Debug/net6.0/Tests.dll View File


BIN
Backend/Tests/bin/Debug/net6.0/Tests.pdb View File


+ 1
- 1
Backend/Tests/bin/Debug/net6.0/nunit_random_seed.tmp View File

@@ -1 +1 @@
537524254
649933828

BIN
Backend/Tests/obj/Debug/net6.0/Tests.csproj.AssemblyReference.cache View File


+ 5
- 5
Backend/Tests/obj/Debug/net6.0/Tests.csproj.FileListAbsolute.txt View File

@@ -783,20 +783,20 @@ C:\Users\ermin.bronja\Desktop\RoomAndRequestTests\WebAPISignalRChat\Backend\Test
C:\Users\ermin.bronja\Desktop\RoomAndRequestTests\WebAPISignalRChat\Backend\Tests\obj\Debug\net6.0\Tests.genruntimeconfig.cache
C:\Users\ermin.bronja\Desktop\RoomAndRequestTests\WebAPISignalRChat\Backend\Tests\obj\Debug\net6.0\ref\Tests.dll
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\CoverletSourceRootsMapping
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\testhost.dll
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\Diligent.WebAPI.Host.deps.json
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\Diligent.WebAPI.Host.runtimeconfig.json
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\appsettings.Development.json
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\appsettings.json
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\Diligent.WebAPI.Host.exe
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\testhost.exe
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\testhost.dll
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\Microsoft.TestPlatform.PlatformAbstractions.dll
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\NUnit3.TestAdapter.dll
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\NUnit3.TestAdapter.pdb
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\nunit.engine.dll
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\nunit.engine.api.dll
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\nunit.engine.core.dll
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\testcentric.engine.metadata.dll
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\Diligent.WebAPI.Host.deps.json
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\Diligent.WebAPI.Host.runtimeconfig.json
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\Diligent.WebAPI.Host.exe
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\Microsoft.TestPlatform.PlatformAbstractions.dll
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\Tests.deps.json
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\Tests.runtimeconfig.json
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\Tests.dll

BIN
Backend/Tests/obj/Debug/net6.0/Tests.dll View File


BIN
Backend/Tests/obj/Debug/net6.0/Tests.pdb View File


Loading…
Cancel
Save