Skip to content

Test/be#23

Merged
eugbyte merged 8 commits into
mainfrom
test/be
Aug 30, 2025
Merged

Test/be#23
eugbyte merged 8 commits into
mainfrom
test/be

Conversation

@eugbyte
Copy link
Copy Markdown
Owner

@eugbyte eugbyte commented Aug 30, 2025

No description provided.

@eugbyte eugbyte requested a review from Copilot August 30, 2025 09:48
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds comprehensive test coverage for the Evently server application. The PR introduces unit tests for service layers and common utilities, along with code style improvements.

Key changes include:

  • Addition of complete test suite for GatheringService and BookingService
  • Unit tests for mapper extension methods
  • Code formatting and import statement cleanup across TypeScript files

Reviewed Changes

Copilot reviewed 27 out of 31 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/Evently.Server.Test/Features/Gatherings/Services/GatheringServiceTests.cs Comprehensive test suite for GatheringService with CRUD operations and validation
tests/Evently.Server.Test/Features/Bookings/Services/BookingServiceTests.cs Unit tests for BookingService covering creation, retrieval, and updates
tests/Evently.Server.Test/Common/Extensions/MapperExtensionTests.cs Tests for entity-to-DTO mapping functionality
tests/Evently.Server.Test/Evently.Server.Test.csproj Test project configuration with required NuGet packages
Multiple TypeScript files Import statement reorganization and code formatting improvements
.github/workflows/build.yml CI/CD pipeline updated to include unit test execution

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

DateTimeOffset cancellation = creation.AddHours(3);

// Create DTO with mock values
BookingReqDto dto = new(attendeeId, bookingId, gatheringId, creation, checkIn, checkout, cancellation);
Copy link

Copilot AI Aug 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The parameter order in the BookingReqDto constructor appears inconsistent with the typical pattern where optional parameters (like cancellation) come last. The current order places attendeeId first, but typically the booking ID would be first. Consider reviewing the constructor parameter order for consistency.

Suggested change
BookingReqDto dto = new(attendeeId, bookingId, gatheringId, creation, checkIn, checkout, cancellation);
BookingReqDto dto = new(bookingId, attendeeId, gatheringId, creation, checkIn, checkout, cancellation);

Copilot uses AI. Check for mistakes.
Comment thread Makefile

add-migration:
dotnet ef migrations add RenameAccountId --project=src/Evently.Server --context=AppDbContext --output-dir=Common/Adapters/Data/Migrations
dotnet ef migrations add ColCollation --project=src/Evently.Server --context=AppDbContext --output-dir=Common/Adapters/Data/Migrations
Copy link

Copilot AI Aug 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The migration name 'ColCollation' is generic and doesn't clearly describe what the migration does. Consider using a more descriptive name that explains the specific changes being made.

Suggested change
dotnet ef migrations add ColCollation --project=src/Evently.Server --context=AppDbContext --output-dir=Common/Adapters/Data/Migrations
dotnet ef migrations add SetUserNameCollationToCaseInsensitive --project=src/Evently.Server --context=AppDbContext --output-dir=Common/Adapters/Data/Migrations

Copilot uses AI. Check for mistakes.
@eugbyte eugbyte merged commit 0b73e9f into main Aug 30, 2025
1 check failed
@eugbyte eugbyte deleted the test/be branch August 30, 2025 10:10
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.

2 participants