Ver código fonte

Excluding ChatHub from code coverage

feature/mongo-services-with-interfaces
Ermin Bronja 3 anos atrás
pai
commit
f6124f31e2

+ 2
- 0
Backend/Diligent.WebAPI.Host/Hubs/ChatHub.cs Ver arquivo

using Microsoft.AspNetCore.SignalR; using Microsoft.AspNetCore.SignalR;
using Diligent.WebAPI.Host.Middlewares; using Diligent.WebAPI.Host.Middlewares;
using Diligent.WebAPI.Host.Mediator.Rooms.Commands; using Diligent.WebAPI.Host.Mediator.Rooms.Commands;
using System.Diagnostics.CodeAnalysis;


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

+ 4
- 1
Backend/Diligent.WebAPI.Host/Hubs/ChatMessage.cs Ver arquivo

namespace Diligent.WebAPI.Host.Hubs
using System.Diagnostics.CodeAnalysis;

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

+ 5
- 1
Backend/Diligent.WebAPI.Host/Hubs/TypingMessage.cs Ver arquivo

namespace Diligent.WebAPI.Host.Hubs
using System.Diagnostics.CodeAnalysis;

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

+ 5
- 1
Backend/Diligent.WebAPI.Host/Hubs/UserConnection.cs Ver arquivo

namespace Diligent.WebAPI.Host.Hubs
using System.Diagnostics.CodeAnalysis;

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

+ 2
- 0
Backend/Diligent.WebAPI.Host/Mediator/Rooms/Handlers/CreateRoomHandler.cs Ver arquivo

using Diligent.WebAPI.Business.Services; using Diligent.WebAPI.Business.Services;
using Diligent.WebAPI.Host.Mediator.Rooms.Commands; using Diligent.WebAPI.Host.Mediator.Rooms.Commands;
using MediatR; using MediatR;
using System.Diagnostics.CodeAnalysis;


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

+ 2
- 0
Backend/Diligent.WebAPI.Host/Mediator/Rooms/Handlers/GetRoomsWhichSupportCreatedHandler.cs Ver arquivo

using Diligent.WebAPI.Data.Entities; using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Host.Mediator.Rooms.Queries; using Diligent.WebAPI.Host.Mediator.Rooms.Queries;
using MediatR; using MediatR;
using System.Diagnostics.CodeAnalysis;


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

BIN
Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Business.dll Ver arquivo


BIN
Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Business.pdb Ver arquivo


BIN
Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Data.dll Ver arquivo


BIN
Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Data.pdb Ver arquivo


BIN
Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Host.dll Ver arquivo


BIN
Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Host.pdb Ver arquivo


BIN
Backend/Tests/bin/Debug/net6.0/Tests.dll Ver arquivo


BIN
Backend/Tests/bin/Debug/net6.0/Tests.pdb Ver arquivo


+ 1
- 1
Backend/Tests/bin/Debug/net6.0/nunit_random_seed.tmp Ver arquivo

537524254
649933828

BIN
Backend/Tests/obj/Debug/net6.0/Tests.csproj.AssemblyReference.cache Ver arquivo


+ 5
- 5
Backend/Tests/obj/Debug/net6.0/Tests.csproj.FileListAbsolute.txt Ver arquivo

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\Tests.genruntimeconfig.cache
C:\Users\ermin.bronja\Desktop\RoomAndRequestTests\WebAPISignalRChat\Backend\Tests\obj\Debug\net6.0\ref\Tests.dll 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\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.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\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.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.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\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.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.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\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\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.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.runtimeconfig.json
C:\Users\ermin.bronja\Desktop\8242022 - Test Hubs\WebAPISignalRChat\Backend\Tests\bin\Debug\net6.0\Tests.dll 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 Ver arquivo


BIN
Backend/Tests/obj/Debug/net6.0/Tests.pdb Ver arquivo


Carregando…
Cancelar
Salvar