Skip to content

Implement SSE endpoint in backend - #112

Merged
Salvarez99 merged 14 commits into
mainfrom
backend/sse
Oct 22, 2025
Merged

Salvarez99 merged 14 commits into
mainfrom
backend/sse

Conversation

@alt-potato

Copy link
Copy Markdown
Collaborator

No description provided.

@alt-potato alt-potato self-assigned this Oct 22, 2025
@github-actions

Copy link
Copy Markdown

Formatting Issues Detected!

  • Backend (Csharpier): Please run dotnet csharpier format . to fix formatting.
View Csharpier output
Error ./Project.App/Project.Test/Tests.Services/DeckApiServiceTest.cs - Was not formatted.
  ----------------------------- Expected: Around Line 116 -----------------------------
                          Content = new StringContent(listResponse),
                      },
                  }
  ----------------------------- Actual: Around Line 116 -----------------------------
                          Content = new StringContent(listResponse),
                      }
                  }
  
Error ./Project.App/Project.Test/Tests.Services/HandServicesTest.cs - Was not formatted.
  ----------------------------- Expected: Around Line 299 -----------------------------
              Assert.Equal(150, resultHand.Bet);
              _handRepositoryMock.Verify(repo => repo.PatchHandAsync(handId, 2, 150), Times.Once);
          }
  ----------------------------- Actual: Around Line 299 -----------------------------
              Assert.Equal(150, resultHand.Bet);
              _handRepositoryMock.Verify(
                  repo => repo.PatchHandAsync(handId, 2, 150),
  
Error ./Project.App/Project.Test/Tests.Services/BlackjackServiceTest.cs - Was not formatted.
  ----------------------------- Expected: Around Line 173 -----------------------------
          var roomId = Guid.NewGuid();
          var gameState = new BlackjackState
          {
  ----------------------------- Actual: Around Line 173 -----------------------------
          var roomId = Guid.NewGuid();
      var gameState = new BlackjackState { CurrentStage = new BlackjackPlayerActionStage(DateTimeOffset.UtcNow.AddMinutes(1), 0) };
          var gameStateString = JsonSerializer.Serialize(gameState);
  
Error ./Project.App/Project.Api/Services/HandService.cs - Was not formatted.
  ----------------------------- Expected: Around Line 16 -----------------------------
  using Microsoft.Extensions.ObjectPool;
  using Project.Api.DTOs;
  using Project.Api.Models;
  ----------------------------- Actual: Around Line 16 -----------------------------
  using Microsoft.Extensions.ObjectPool;
  using Project.Api.Models;
  using Project.Api.Repositories;
  
Error ./Project.App/Project.Api/Controllers/HandController.cs - Was not formatted.
  ----------------------------- Expected: Around Line 24 -----------------------------
  
          public HandController(
              ILogger<HandController> logger,
  ----------------------------- Actual: Around Line 24 -----------------------------
  
  
  
  
Error ./Project.App/Project.Api/Services/BlackjackService.cs - Was not formatted.
  ----------------------------- Expected: Around Line 273 -----------------------------
                      );
                      await _roomRepository.UpdateGameStateAsync(
                          roomId,
  ----------------------------- Actual: Around Line 273 -----------------------------
                      );
                      await _roomRepository.UpdateGameStateAsync(roomId, JsonSerializer.Serialize(state));
  
  
Error ./Project.App/Project.Api/Services/RoomService.cs - Was not formatted.
  ----------------------------- Expected: Around Line 87 -----------------------------
              CreatedAt = DateTime.UtcNow,
              IsActive = true,
          };
  ----------------------------- Actual: Around Line 87 -----------------------------
              CreatedAt = DateTime.UtcNow,
              IsActive = true
          };
  
Error ./Project.App/Project.Api/Services/Interface/IHandService.cs - Was not formatted.
  ----------------------------- Expected: Around Line 6 -----------------------------
  */
  using Project.Api.DTOs;
  using Project.Api.Models;
  ----------------------------- Actual: Around Line 6 -----------------------------
  */
  using Project.Api.Models;
  using Project.Api.DTOs;
  
Error ./Project.App/Project.Api/Repositories/RoomPlayerRepository.cs - Was not formatted.
  ----------------------------- Expected: Around Line 153 -----------------------------
      {
          var players = await _context.RoomPlayers.Where(rp => rp.RoomId == roomId).ToListAsync();
  
  ----------------------------- Actual: Around Line 153 -----------------------------
      {
          var players = await _context
              .RoomPlayers.Where(rp => rp.RoomId == roomId)
  
Error ./Project.App/Project.Test/Tests.Controllers/HandControllerTest.cs - Was not formatted.
  ----------------------------- Expected: Around Line 21 -----------------------------
  
          private readonly Mock<IDeckApiService> _mockDeckApiService;
  
  ----------------------------- Actual: Around Line 21 -----------------------------
  
      private readonly Mock<IDeckApiService> _mockDeckApiService;
  
  
Error ./Project.App/Project.Test/Tests.Repositories/RoomPlayerRepositoryTests.cs - Was not formatted.
  ----------------------------- Expected: Around Line 724 -----------------------------
  
          // Act - add 4000 to initial 1000 to reach expected 5000
          await repository.UpdatePlayerBalanceAsync(roomPlayer.Id, 4000);
  ----------------------------- Actual: Around Line 724 -----------------------------
  
      // Act - add 4000 to initial 1000 to reach expected 5000
      await repository.UpdatePlayerBalanceAsync(roomPlayer.Id, 4000);
  
Checked 74 files in 701ms.

@alt-potato
alt-potato requested review from Mjsims42, Venommr and muhiddinkurbonov and removed request for Mjsims42 and muhiddinkurbonov October 22, 2025 19:39
@Salvarez99
Salvarez99 merged commit 34ca808 into main Oct 22, 2025
5 checks passed
@Salvarez99
Salvarez99 deleted the backend/sse branch October 22, 2025 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants