Просмотр исходного кода

Excluding ChatHub from code coverage

feature/mongo-services-with-interfaces
Ermin Bronja 3 лет назад
Родитель
Сommit
f6124f31e2
19 измененных файлов: 26 добавлений и 9 удалений
  1. 2
    0
      Backend/Diligent.WebAPI.Host/Hubs/ChatHub.cs
  2. 4
    1
      Backend/Diligent.WebAPI.Host/Hubs/ChatMessage.cs
  3. 5
    1
      Backend/Diligent.WebAPI.Host/Hubs/TypingMessage.cs
  4. 5
    1
      Backend/Diligent.WebAPI.Host/Hubs/UserConnection.cs
  5. 2
    0
      Backend/Diligent.WebAPI.Host/Mediator/Rooms/Handlers/CreateRoomHandler.cs
  6. 2
    0
      Backend/Diligent.WebAPI.Host/Mediator/Rooms/Handlers/GetRoomsWhichSupportCreatedHandler.cs
  7. Двоичные данные
      Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Business.dll
  8. Двоичные данные
      Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Business.pdb
  9. Двоичные данные
      Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Data.dll
  10. Двоичные данные
      Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Data.pdb
  11. Двоичные данные
      Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Host.dll
  12. Двоичные данные
      Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Host.pdb
  13. Двоичные данные
      Backend/Tests/bin/Debug/net6.0/Tests.dll
  14. Двоичные данные
      Backend/Tests/bin/Debug/net6.0/Tests.pdb
  15. 1
    1
      Backend/Tests/bin/Debug/net6.0/nunit_random_seed.tmp
  16. Двоичные данные
      Backend/Tests/obj/Debug/net6.0/Tests.csproj.AssemblyReference.cache
  17. 5
    5
      Backend/Tests/obj/Debug/net6.0/Tests.csproj.FileListAbsolute.txt
  18. Двоичные данные
      Backend/Tests/obj/Debug/net6.0/Tests.dll
  19. Двоичные данные
      Backend/Tests/obj/Debug/net6.0/Tests.pdb

+ 2
- 0
Backend/Diligent.WebAPI.Host/Hubs/ChatHub.cs Просмотреть файл

@@ -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 Просмотреть файл

@@ -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 Просмотреть файл

@@ -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 Просмотреть файл

@@ -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 Просмотреть файл

@@ -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 Просмотреть файл

@@ -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;

Двоичные данные
Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Business.dll Просмотреть файл


Двоичные данные
Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Business.pdb Просмотреть файл


Двоичные данные
Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Data.dll Просмотреть файл


Двоичные данные
Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Data.pdb Просмотреть файл


Двоичные данные
Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Host.dll Просмотреть файл


Двоичные данные
Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Host.pdb Просмотреть файл


Двоичные данные
Backend/Tests/bin/Debug/net6.0/Tests.dll Просмотреть файл


Двоичные данные
Backend/Tests/bin/Debug/net6.0/Tests.pdb Просмотреть файл


+ 1
- 1
Backend/Tests/bin/Debug/net6.0/nunit_random_seed.tmp Просмотреть файл

@@ -1 +1 @@
537524254
649933828

Двоичные данные
Backend/Tests/obj/Debug/net6.0/Tests.csproj.AssemblyReference.cache Просмотреть файл


+ 5
- 5
Backend/Tests/obj/Debug/net6.0/Tests.csproj.FileListAbsolute.txt Просмотреть файл

@@ -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

Двоичные данные
Backend/Tests/obj/Debug/net6.0/Tests.dll Просмотреть файл


Двоичные данные
Backend/Tests/obj/Debug/net6.0/Tests.pdb Просмотреть файл


Загрузка…
Отмена
Сохранить