From 6da82e39ce9b1679ccc0ea498d0e74f47ba0a564 Mon Sep 17 00:00:00 2001
From: Meysam Hadeli <35596795+meysamhadeli@users.noreply.github.com>
Date: Mon, 16 Sep 2024 01:58:31 +0330
Subject: [PATCH 1/2] .
---
.husky/pre-commit | 1 +
Directory.Build.props | 43 +-
commitlint.config.js | 3 +
global.json | 4 +-
package-lock.json | 1346 +++++++++++++++++
package.json | 18 +
src/BuildingBlocks/BuildingBlocks.csproj | 100 +-
src/BuildingBlocks/Caching/CachingBehavior.cs | 2 +-
src/BuildingBlocks/Core/CQRS/ICommand.cs | 2 +-
.../Core/CQRS/ICommandHandler.cs | 2 +-
src/BuildingBlocks/Core/CQRS/IQuery.cs | 2 +-
src/BuildingBlocks/Core/CQRS/IQueryHandler.cs | 2 +-
.../Core/Event/IHaveIntegrationEvent.cs | 2 +-
.../Core/Event/IInternalCommand.cs | 2 +-
.../Core/Event/InternalCommand.cs | 2 +-
.../Core/Event/MessageEnvelope.cs | 2 +-
src/BuildingBlocks/Core/EventDispatcher.cs | 8 +-
src/BuildingBlocks/Core/Model/Aggregate.cs | 2 +-
src/BuildingBlocks/Core/Model/Entity.cs | 2 +-
src/BuildingBlocks/Core/Model/IAggregate.cs | 2 +-
src/BuildingBlocks/Core/Model/IEntity.cs | 4 +-
src/BuildingBlocks/Core/Model/IVersion.cs | 2 +-
.../Core/Pagination/Extensions.cs | 2 +-
.../Core/Pagination/IPageList.cs | 2 +-
.../Core/Pagination/IPageQuery.cs | 5 +-
.../Core/Pagination/IPageRequest.cs | 2 +-
.../Core/Pagination/PageList.cs | 2 +-
src/BuildingBlocks/EFCore/AppDbContextBase.cs | 3 +-
.../EFCore/DesignTimeDbContextFactoryBase.cs | 4 +-
src/BuildingBlocks/EFCore/EfTxBehavior.cs | 6 +-
src/BuildingBlocks/EFCore/IDataSeeder.cs | 2 +-
.../BackgroundWorkers/BackgroundWorker.cs | 2 +-
src/BuildingBlocks/EventStoreDB/Config.cs | 2 +-
.../Events/AggregateEventSourcing.cs | 2 +-
.../Events/AggregateStreamExtensions.cs | 2 +-
.../EventStoreDB/Events/EventTypeMapper.cs | 2 +-
.../EventStoreDB/Events/IEventHandler.cs | 2 +-
.../EventStoreDB/Events/IExternalEvent.cs | 2 +-
.../EventStoreDB/Events/IProjection.cs | 2 +-
.../EventStoreDB/Events/StreamEvent.cs | 6 +-
.../Events/StreamEventExtensions.cs | 2 +-
.../EventStoreDB/Events/StreamNameMapper.cs | 4 +-
src/BuildingBlocks/EventStoreDB/Extensions.cs | 2 +-
.../Repository/EventStoreDBRepository.cs | 2 +-
.../Repository/RepositoryExtensions.cs | 2 +-
.../Serialization/EventStoreDBSerializer.cs | 2 +-
.../JsonObjectContractProvider.cs | 5 +-
.../NonDefaultConstructorContractResolver.cs | 4 +-
...StoreDBSubscriptionCheckpointRepository.cs | 8 +-
.../EventStoreDBSubscriptionToAll.cs | 11 +-
.../ISubscriptionCheckpointRepository.cs | 2 +-
...nMemorySubscriptionCheckpointRepository.cs | 2 +-
src/BuildingBlocks/Exception/AppException.cs | 2 +-
.../Exception/InternalServerException.cs | 2 +-
.../Exception/ProblemDetailsWithCode.cs | 2 +-
src/BuildingBlocks/HealthCheck/Extensions.cs | 8 +-
.../HealthCheck/HealthOptions.cs | 2 +-
src/BuildingBlocks/Jwt/JwtExtensions.cs | 11 +-
src/BuildingBlocks/Logging/ElasticOptions.cs | 2 +-
src/BuildingBlocks/Logging/Extensions.cs | 4 +-
src/BuildingBlocks/Logging/FileOptions.cs | 2 +-
src/BuildingBlocks/Logging/LogEnrichHelper.cs | 4 +-
src/BuildingBlocks/Logging/LogOptions.cs | 2 +-
src/BuildingBlocks/Logging/SentryOptions.cs | 2 +-
.../MassTransit/ConsumeFilter.cs | 2 +-
.../PersistMessageConfiguration.cs | 2 +-
.../Data/PersistMessageDbContext.cs | 2 +-
.../PersistMessageProcessor/Extensions.cs | 2 +-
.../IPersistMessageDbContext.cs | 2 +-
.../IPersistMessageProcessor.cs | 2 +-
.../MessageDeliveryType.cs | 2 +-
.../PersistMessageProcessor/MessageStatus.cs | 2 +-
.../PersistMessageProcessor/PersistMessage.cs | 4 +-
.../PersistMessageBackgroundService.cs | 2 +-
.../PersistMessageOptions.cs | 2 +-
.../PersistMessageProcessor.cs | 5 +-
src/BuildingBlocks/Polly/Extensions.cs | 2 +-
.../Polly/GrpcCircuitBreaker.cs | 2 +-
src/BuildingBlocks/Polly/GrpcRetry.cs | 2 +-
.../Polly/HttpClientCircuitBreaker.cs | 2 +-
src/BuildingBlocks/Polly/HttpClientRetry.cs | 2 +-
src/BuildingBlocks/Polly/PolicyOptions.cs | 2 +-
.../ProblemDetails/Extensions.cs | 2 +-
.../Swagger/ConfigureSwaggerOptions.cs | 6 +-
.../Swagger/ServiceCollectionExtensions.cs | 5 +-
.../Swagger/SwaggerDefaultValues.cs | 4 +-
src/BuildingBlocks/Swagger/SwaggerOptions.cs | 2 +-
src/BuildingBlocks/TestBase/TestBase.cs | 8 +-
src/BuildingBlocks/TestBase/TestContainers.cs | 2 +-
.../Utils/NoSynchronizationContextScope.cs | 6 +-
src/BuildingBlocks/Utils/ServiceLocator.cs | 2 +-
.../Validation/ValidationError.cs | 2 +-
.../Web/ApiVersioningExtensions.cs | 2 +-
src/BuildingBlocks/Web/BaseController.cs | 2 +-
src/BuildingBlocks/Web/ConfigurationHelper.cs | 2 +-
src/BuildingBlocks/Web/CurrentUserProvider.cs | 2 +-
src/BuildingBlocks/Web/EndpointConfig.cs | 2 +-
src/BuildingBlocks/Web/IMinimalEndpoint.cs | 2 +-
.../Web/MinimalApiExtensions.cs | 2 +-
.../Web/ServiceCollectionExtensions.cs | 2 +-
.../Web/ServiceProviderExtensions.cs | 2 +-
.../src/Booking.Api/Booking.Api.csproj | 6 -
.../Booking/src/Booking.Api/Program.cs | 2 +-
.../Booking/src/Booking/Booking.csproj | 12 +-
.../Exceptions/InvalidAircraftIdException.cs | 2 +-
.../InvalidArriveAirportIdException.cs | 2 +-
.../InvalidDepartureAirportIdException.cs | 2 +-
.../Exceptions/InvalidFlightDateException.cs | 2 +-
.../InvalidFlightNumberException.cs | 2 +-
.../InvalidPassengerNameException.cs | 2 +-
.../Exceptions/InvalidPriceException.cs | 2 +-
.../Booking/Exceptions/SeatNumberException.cs | 2 +-
.../Features/CreatingBook/V1/CreateBooking.cs | 3 +-
.../Booking/Models/BookingReadModel.cs | 2 +-
.../src/Booking/Booking/ValueObjects/Trip.cs | 3 +-
.../src/Booking/Data/BookingReadDbContext.cs | 2 +-
.../Infrastructure/GrpcClientExtensions.cs | 5 +-
.../InfrastructureExtensions.cs | 7 +-
.../Booking/Features/CreateBookingTests.cs | 2 +-
.../BookingIntegrationTestBase.cs | 4 +-
.../Fakes/FakeCreateBookingCommand.cs | 2 +-
.../Fakes/FakeFlightResponse.cs | 2 +-
.../Fakes/FakeGetAvailableSeatsResponse.cs | 2 +-
.../Fakes/FakePassengerResponse.cs | 2 +-
.../Fakes/FakeReserveSeatResponse.cs | 2 +-
.../IntegrationTest/Integration.Test.csproj | 8 +-
.../Flight/src/Flight.Api/Flight.Api.csproj | 6 -
src/Services/Flight/src/Flight.Api/Program.cs | 2 +-
.../ValueObjects/ManufacturingYear.cs | 2 +-
.../CreatingAirport/V1/CreateAirportMongo.cs | 6 +-
.../Airports/Models/AirportReadModel.cs | 2 +-
.../Data/Migrations/20230611230948_initial.cs | 2 +-
.../InfrastructureExtensions.cs | 7 +-
src/Services/Flight/src/Flight/Flight.csproj | 15 +-
.../DeletingFlight/V1/DeleteFlightMongo.cs | 2 +-
.../UpdatingFlight/V1/UpdateFlightMongo.cs | 2 +-
.../GrpcServer/Services/FlightGrpcServices.cs | 2 +-
.../Features/CreatingSeat/V1/CreateSeat.cs | 4 +-
.../CreatingSeat/V1/CreateSeatMongo.cs | 4 +-
.../ReservingSeat/V1/ReserveSeatMongo.cs | 2 +-
.../src/Flight/Seats/Models/SeatReadModel.cs | 2 +-
.../tests/EndToEndTest/EndToEnd.Test.csproj | 9 +-
.../Fakes/FakeCreateFlightCommand.cs | 4 +-
.../Fakes/FakeCreateFlightMongoCommand.cs | 6 +-
.../Flight/Features/CreateFlightTests.cs | 2 +-
.../Flight/Features/GetFlightByIdTests.cs | 4 +-
.../EndToEndTest/FlightEndToEndTestBase.cs | 4 +-
.../tests/EndToEndTest/Routes/ApiRoutes.cs | 2 +-
.../Airport/Features/CreateAirportTests.cs | 2 +-
.../Fakes/FakeCreateAirportCommand.cs | 2 +-
.../Fakes/FakeCreateFlightCommand.cs | 4 +-
.../Fakes/FakeCreateFlightMongoCommand.cs | 4 +-
.../Fakes/FakeCreateSeatCommand.cs | 2 +-
.../Fakes/FakeCreateSeatMongoCommand.cs | 2 +-
.../Fakes/FakeUpdateFlightCommand.cs | 2 +-
.../Flight/Features/CreateFlightTests.cs | 2 +-
.../Features/GetAvailableFlightsTests.cs | 2 +-
.../Flight/Features/GetFlightByIdTests.cs | 4 +-
.../FlightIntegrationTestBase.cs | 4 +-
.../IntegrationTest/Integration.Test.csproj | 8 +-
.../Seat/Features/GetAvailableSeatsTests.cs | 4 +-
.../CreateAircraftCommandHandlerTests.cs | 2 +-
.../CreateAircraftCommandValidatorTests.cs | 2 +-
.../CreateAirportCommandValidatorTests.cs | 2 +-
.../tests/UnitTest/Common/MapperFactory.cs | 2 +-
.../tests/UnitTest/Common/UnitTestFixture.cs | 2 +-
.../Fakes/FakeCreateAirportCommand.cs | 2 +-
.../UnitTest/Fakes/FakeCreateFlightCommand.cs | 2 +-
.../UnitTest/Fakes/FakeCreateSeatCommand.cs | 2 +-
.../FakeValidateCreateAircraftCommand.cs | 2 +-
.../Fakes/FakeValidateCreateAirportCommand.cs | 2 +-
.../Fakes/FakeValidateCreateFlightCommand.cs | 2 +-
.../Fakes/FakeValidateCreateSeatCommand.cs | 2 +-
.../Features/Domains/CreateFlightTests.cs | 2 +-
.../CreateFlightCommandValidatorTests.cs | 2 +-
.../CreateSeatCommandValidatorTests.cs | 2 +-
.../Flight/tests/UnitTest/Unit.Test.csproj | 8 +-
.../src/Identity.Api/Identity.Api.csproj | 6 -
.../Identity/src/Identity.Api/Program.cs | 2 +-
.../Identity/Configurations/AuthOptions.cs | 2 +-
.../Configurations/RoleClaimConfiguration.cs | 2 +-
.../Data/Configurations/RoleConfiguration.cs | 2 +-
.../Configurations/UserClaimConfiguration.cs | 2 +-
.../Data/Configurations/UserConfiguration.cs | 2 +-
.../Configurations/UserLoginConfiguration.cs | 2 +-
.../Configurations/UserRoleConfiguration.cs | 2 +-
.../Configurations/UserTokenConfiguration.cs | 2 +-
.../src/Identity/Data/IdentityContext.cs | 3 +-
.../Data/Migrations/20230331193410_initial.cs | 2 +-
.../Identity/Data/Seed/IdentityDataSeeder.cs | 4 +-
.../src/Identity/Data/Seed/InitialData.cs | 2 +-
.../IdentityServerExtensions.cs | 4 +-
.../InfrastructureExtensions.cs | 7 +-
.../Identity/src/Identity/Identity.csproj | 7 +-
.../Identity/Features/IdentityMappings.cs | 2 +-
.../src/Identity/Identity/Models/Role.cs | 4 +-
.../src/Identity/Identity/Models/RoleClaim.cs | 4 +-
.../src/Identity/Identity/Models/UserClaim.cs | 4 +-
.../src/Identity/Identity/Models/UserLogin.cs | 4 +-
.../src/Identity/Identity/Models/UserRole.cs | 4 +-
.../src/Identity/Identity/Models/UserToken.cs | 4 +-
.../Fakes/FakeRegisterNewUserCommand.cs | 2 +-
.../Identity/Features/RegisterNewUserTests.cs | 2 +-
.../IdentityIntegrationTestBase.cs | 4 +-
.../IntegrationTest/Integration.Test.csproj | 8 +-
.../src/Passenger.Api/Passenger.Api.csproj | 6 -
.../Passenger/src/Passenger.Api/Program.cs | 2 +-
.../Data/DesignTimeDbContextFactory.cs | 2 +-
.../Data/Migrations/20230611213031_initial.cs | 2 +-
.../Passenger/Data/PassengerReadDbContext.cs | 2 +-
.../InfrastructureExtensions.cs | 7 +-
.../Services/PassengerGrpcServices.cs | 2 +-
.../V1/PassengerCreatedDomainEvent.cs | 2 +-
.../Passenger/src/Passenger/Passenger.csproj | 10 +-
.../Passenger/src/Passenger/PassengerRoot.cs | 4 +-
.../Exceptions/PassengerNotFoundException.cs | 2 +-
.../Passenger/Passengers/Models/Passenger.cs | 2 +-
.../FakeCompleteRegisterPassengerCommand.cs | 2 +-
...keCompleteRegisterPassengerMongoCommand.cs | 6 +-
.../IntegrationTest/Fakes/FakeUserCreated.cs | 4 +-
.../IntegrationTest/Integration.Test.csproj | 8 +-
.../Features/GetPassengerByIdTests.cs | 4 +-
.../PassengerIntegrationTestBase.cs | 4 +-
223 files changed, 1771 insertions(+), 438 deletions(-)
create mode 100644 .husky/pre-commit
create mode 100644 commitlint.config.js
create mode 100644 package-lock.json
create mode 100644 package.json
diff --git a/.husky/pre-commit b/.husky/pre-commit
new file mode 100644
index 00000000..b7807b0d
--- /dev/null
+++ b/.husky/pre-commit
@@ -0,0 +1 @@
+npm run format
\ No newline at end of file
diff --git a/Directory.Build.props b/Directory.Build.props
index 07a7487c..50b29207 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -1,8 +1,45 @@
+
+ net8.0
+ enable
+ enable
+
+
-
-
-
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+
+ true
+ true
+ All
+
+
diff --git a/commitlint.config.js b/commitlint.config.js
new file mode 100644
index 00000000..308c7f21
--- /dev/null
+++ b/commitlint.config.js
@@ -0,0 +1,3 @@
+module.exports = {
+ extends: ["@commitlint/config-conventional"],
+ }
\ No newline at end of file
diff --git a/global.json b/global.json
index 0c6b1039..5cf96894 100644
--- a/global.json
+++ b/global.json
@@ -1,6 +1,6 @@
{
"sdk": {
- "version": "8.0.303",
+ "version": "8.0.401",
"rollForward": "latestFeature"
}
- }
\ No newline at end of file
+ }
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 00000000..aa954f2a
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,1346 @@
+{
+ "name": "booking-microservices",
+ "version": "1.0.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "booking-microservices",
+ "version": "1.0.0",
+ "license": "MIT",
+ "devDependencies": {
+ "@commitlint/cli": "^19.5.0",
+ "@commitlint/config-conventional": "^19.5.0",
+ "husky": "^9.1.6"
+ }
+ },
+ "node_modules/@babel/code-frame": {
+ "version": "7.24.7",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz",
+ "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/highlight": "^7.24.7",
+ "picocolors": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-identifier": {
+ "version": "7.24.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz",
+ "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/highlight": {
+ "version": "7.24.7",
+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz",
+ "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-validator-identifier": "^7.24.7",
+ "chalk": "^2.4.2",
+ "js-tokens": "^4.0.0",
+ "picocolors": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/highlight/node_modules/ansi-styles": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
+ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^1.9.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/@babel/highlight/node_modules/chalk": {
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
+ "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^3.2.1",
+ "escape-string-regexp": "^1.0.5",
+ "supports-color": "^5.3.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/@babel/highlight/node_modules/color-convert": {
+ "version": "1.9.3",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
+ "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "1.1.3"
+ }
+ },
+ "node_modules/@babel/highlight/node_modules/color-name": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
+ "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@commitlint/cli": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/cli/-/cli-19.5.0.tgz",
+ "integrity": "sha512-gaGqSliGwB86MDmAAKAtV9SV1SHdmN8pnGq4EJU4+hLisQ7IFfx4jvU4s+pk6tl0+9bv6yT+CaZkufOinkSJIQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/format": "^19.5.0",
+ "@commitlint/lint": "^19.5.0",
+ "@commitlint/load": "^19.5.0",
+ "@commitlint/read": "^19.5.0",
+ "@commitlint/types": "^19.5.0",
+ "tinyexec": "^0.3.0",
+ "yargs": "^17.0.0"
+ },
+ "bin": {
+ "commitlint": "cli.js"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/config-conventional": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-19.5.0.tgz",
+ "integrity": "sha512-OBhdtJyHNPryZKg0fFpZNOBM1ZDbntMvqMuSmpfyP86XSfwzGw4CaoYRG4RutUPg0BTK07VMRIkNJT6wi2zthg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/types": "^19.5.0",
+ "conventional-changelog-conventionalcommits": "^7.0.2"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/config-validator": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/config-validator/-/config-validator-19.5.0.tgz",
+ "integrity": "sha512-CHtj92H5rdhKt17RmgALhfQt95VayrUo2tSqY9g2w+laAXyk7K/Ef6uPm9tn5qSIwSmrLjKaXK9eiNuxmQrDBw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/types": "^19.5.0",
+ "ajv": "^8.11.0"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/ensure": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/ensure/-/ensure-19.5.0.tgz",
+ "integrity": "sha512-Kv0pYZeMrdg48bHFEU5KKcccRfKmISSm9MvgIgkpI6m+ohFTB55qZlBW6eYqh/XDfRuIO0x4zSmvBjmOwWTwkg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/types": "^19.5.0",
+ "lodash.camelcase": "^4.3.0",
+ "lodash.kebabcase": "^4.1.1",
+ "lodash.snakecase": "^4.1.1",
+ "lodash.startcase": "^4.4.0",
+ "lodash.upperfirst": "^4.3.1"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/execute-rule": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/execute-rule/-/execute-rule-19.5.0.tgz",
+ "integrity": "sha512-aqyGgytXhl2ejlk+/rfgtwpPexYyri4t8/n4ku6rRJoRhGZpLFMqrZ+YaubeGysCP6oz4mMA34YSTaSOKEeNrg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/format": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/format/-/format-19.5.0.tgz",
+ "integrity": "sha512-yNy088miE52stCI3dhG/vvxFo9e4jFkU1Mj3xECfzp/bIS/JUay4491huAlVcffOoMK1cd296q0W92NlER6r3A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/types": "^19.5.0",
+ "chalk": "^5.3.0"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/is-ignored": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/is-ignored/-/is-ignored-19.5.0.tgz",
+ "integrity": "sha512-0XQ7Llsf9iL/ANtwyZ6G0NGp5Y3EQ8eDQSxv/SRcfJ0awlBY4tHFAvwWbw66FVUaWICH7iE5en+FD9TQsokZ5w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/types": "^19.5.0",
+ "semver": "^7.6.0"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/lint": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/lint/-/lint-19.5.0.tgz",
+ "integrity": "sha512-cAAQwJcRtiBxQWO0eprrAbOurtJz8U6MgYqLz+p9kLElirzSCc0vGMcyCaA1O7AqBuxo11l1XsY3FhOFowLAAg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/is-ignored": "^19.5.0",
+ "@commitlint/parse": "^19.5.0",
+ "@commitlint/rules": "^19.5.0",
+ "@commitlint/types": "^19.5.0"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/load": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/load/-/load-19.5.0.tgz",
+ "integrity": "sha512-INOUhkL/qaKqwcTUvCE8iIUf5XHsEPCLY9looJ/ipzi7jtGhgmtH7OOFiNvwYgH7mA8osUWOUDV8t4E2HAi4xA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/config-validator": "^19.5.0",
+ "@commitlint/execute-rule": "^19.5.0",
+ "@commitlint/resolve-extends": "^19.5.0",
+ "@commitlint/types": "^19.5.0",
+ "chalk": "^5.3.0",
+ "cosmiconfig": "^9.0.0",
+ "cosmiconfig-typescript-loader": "^5.0.0",
+ "lodash.isplainobject": "^4.0.6",
+ "lodash.merge": "^4.6.2",
+ "lodash.uniq": "^4.5.0"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/message": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/message/-/message-19.5.0.tgz",
+ "integrity": "sha512-R7AM4YnbxN1Joj1tMfCyBryOC5aNJBdxadTZkuqtWi3Xj0kMdutq16XQwuoGbIzL2Pk62TALV1fZDCv36+JhTQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/parse": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/parse/-/parse-19.5.0.tgz",
+ "integrity": "sha512-cZ/IxfAlfWYhAQV0TwcbdR1Oc0/r0Ik1GEessDJ3Lbuma/MRO8FRQX76eurcXtmhJC//rj52ZSZuXUg0oIX0Fw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/types": "^19.5.0",
+ "conventional-changelog-angular": "^7.0.0",
+ "conventional-commits-parser": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/read": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/read/-/read-19.5.0.tgz",
+ "integrity": "sha512-TjS3HLPsLsxFPQj6jou8/CZFAmOP2y+6V4PGYt3ihbQKTY1Jnv0QG28WRKl/d1ha6zLODPZqsxLEov52dhR9BQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/top-level": "^19.5.0",
+ "@commitlint/types": "^19.5.0",
+ "git-raw-commits": "^4.0.0",
+ "minimist": "^1.2.8",
+ "tinyexec": "^0.3.0"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/resolve-extends": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-19.5.0.tgz",
+ "integrity": "sha512-CU/GscZhCUsJwcKTJS9Ndh3AKGZTNFIOoQB2n8CmFnizE0VnEuJoum+COW+C1lNABEeqk6ssfc1Kkalm4bDklA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/config-validator": "^19.5.0",
+ "@commitlint/types": "^19.5.0",
+ "global-directory": "^4.0.1",
+ "import-meta-resolve": "^4.0.0",
+ "lodash.mergewith": "^4.6.2",
+ "resolve-from": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/rules": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/rules/-/rules-19.5.0.tgz",
+ "integrity": "sha512-hDW5TPyf/h1/EufSHEKSp6Hs+YVsDMHazfJ2azIk9tHPXS6UqSz1dIRs1gpqS3eMXgtkT7JH6TW4IShdqOwhAw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/ensure": "^19.5.0",
+ "@commitlint/message": "^19.5.0",
+ "@commitlint/to-lines": "^19.5.0",
+ "@commitlint/types": "^19.5.0"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/to-lines": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/to-lines/-/to-lines-19.5.0.tgz",
+ "integrity": "sha512-R772oj3NHPkodOSRZ9bBVNq224DOxQtNef5Pl8l2M8ZnkkzQfeSTr4uxawV2Sd3ui05dUVzvLNnzenDBO1KBeQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/top-level": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/top-level/-/top-level-19.5.0.tgz",
+ "integrity": "sha512-IP1YLmGAk0yWrImPRRc578I3dDUI5A2UBJx9FbSOjxe9sTlzFiwVJ+zeMLgAtHMtGZsC8LUnzmW1qRemkFU4ng==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "find-up": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@commitlint/types": {
+ "version": "19.5.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/types/-/types-19.5.0.tgz",
+ "integrity": "sha512-DSHae2obMSMkAtTBSOulg5X7/z+rGLxcXQIkg3OmWvY6wifojge5uVMydfhUvs7yQj+V7jNmRZ2Xzl8GJyqRgg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/conventional-commits-parser": "^5.0.0",
+ "chalk": "^5.3.0"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+ },
+ "node_modules/@types/conventional-commits-parser": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/@types/conventional-commits-parser/-/conventional-commits-parser-5.0.0.tgz",
+ "integrity": "sha512-loB369iXNmAZglwWATL+WRe+CRMmmBPtpolYzIebFaX4YA3x+BEfLqhUAV9WanycKI3TG1IMr5bMJDajDKLlUQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/node": {
+ "version": "22.5.5",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.5.tgz",
+ "integrity": "sha512-Xjs4y5UPO/CLdzpgR6GirZJx36yScjh73+2NlLlkFRSoQN8B0DpfXPdZGnvVmLRLOsqDpOfTNv7D9trgGhmOIA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "undici-types": "~6.19.2"
+ }
+ },
+ "node_modules/ajv": {
+ "version": "8.17.1",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz",
+ "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.3",
+ "fast-uri": "^3.0.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/argparse": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
+ "dev": true,
+ "license": "Python-2.0"
+ },
+ "node_modules/array-ify": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz",
+ "integrity": "sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/callsites": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/chalk": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz",
+ "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^12.17.0 || ^14.13 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "node_modules/cliui": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
+ "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.1",
+ "wrap-ansi": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "node_modules/color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/compare-func": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz",
+ "integrity": "sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "array-ify": "^1.0.0",
+ "dot-prop": "^5.1.0"
+ }
+ },
+ "node_modules/conventional-changelog-angular": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-7.0.0.tgz",
+ "integrity": "sha512-ROjNchA9LgfNMTTFSIWPzebCwOGFdgkEq45EnvvrmSLvCtAw0HSmrCs7/ty+wAeYUZyNay0YMUNYFTRL72PkBQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "compare-func": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/conventional-changelog-conventionalcommits": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-7.0.2.tgz",
+ "integrity": "sha512-NKXYmMR/Hr1DevQegFB4MwfM5Vv0m4UIxKZTTYuD98lpTknaZlSRrDOG4X7wIXpGkfsYxZTghUN+Qq+T0YQI7w==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "compare-func": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/conventional-commits-parser": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-5.0.0.tgz",
+ "integrity": "sha512-ZPMl0ZJbw74iS9LuX9YIAiW8pfM5p3yh2o/NbXHbkFuZzY5jvdi5jFycEOkmBW5H5I7nA+D6f3UcsCLP2vvSEA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-text-path": "^2.0.0",
+ "JSONStream": "^1.3.5",
+ "meow": "^12.0.1",
+ "split2": "^4.0.0"
+ },
+ "bin": {
+ "conventional-commits-parser": "cli.mjs"
+ },
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/cosmiconfig": {
+ "version": "9.0.0",
+ "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-9.0.0.tgz",
+ "integrity": "sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "env-paths": "^2.2.1",
+ "import-fresh": "^3.3.0",
+ "js-yaml": "^4.1.0",
+ "parse-json": "^5.2.0"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/d-fischer"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.9.5"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/cosmiconfig-typescript-loader": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/cosmiconfig-typescript-loader/-/cosmiconfig-typescript-loader-5.0.0.tgz",
+ "integrity": "sha512-+8cK7jRAReYkMwMiG+bxhcNKiHJDM6bR9FD/nGBXOWdMLuYawjF5cGrtLilJ+LGd3ZjCXnJjR5DkfWPoIVlqJA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "jiti": "^1.19.1"
+ },
+ "engines": {
+ "node": ">=v16"
+ },
+ "peerDependencies": {
+ "@types/node": "*",
+ "cosmiconfig": ">=8.2",
+ "typescript": ">=4"
+ }
+ },
+ "node_modules/dargs": {
+ "version": "8.1.0",
+ "resolved": "https://registry.npmjs.org/dargs/-/dargs-8.1.0.tgz",
+ "integrity": "sha512-wAV9QHOsNbwnWdNW2FYvE1P56wtgSbM+3SZcdGiWQILwVjACCXDCI3Ai8QlCjMDB8YK5zySiXZYBiwGmNY3lnw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/dot-prop": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz",
+ "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-obj": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/env-paths": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",
+ "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/error-ex": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",
+ "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-arrayish": "^0.2.1"
+ }
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/escape-string-regexp": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
+ "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-uri": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.1.tgz",
+ "integrity": "sha512-MWipKbbYiYI0UC7cl8m/i/IWTqfC8YXsqjzybjddLsFjStroQzsHXkc73JutMvBiXmOvapk+axIl79ig5t55Bw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/find-up": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-7.0.0.tgz",
+ "integrity": "sha512-YyZM99iHrqLKjmt4LJDj58KI+fYyufRLBSYcqycxf//KpBk9FoewoGX0450m9nB44qrZnovzC2oeP5hUibxc/g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "locate-path": "^7.2.0",
+ "path-exists": "^5.0.0",
+ "unicorn-magic": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/get-caller-file": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": "6.* || 8.* || >= 10.*"
+ }
+ },
+ "node_modules/git-raw-commits": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-4.0.0.tgz",
+ "integrity": "sha512-ICsMM1Wk8xSGMowkOmPrzo2Fgmfo4bMHLNX6ytHjajRJUqvHOw/TFapQ+QG75c3X/tTDDhOSRPGC52dDbNM8FQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "dargs": "^8.0.0",
+ "meow": "^12.0.1",
+ "split2": "^4.0.0"
+ },
+ "bin": {
+ "git-raw-commits": "cli.mjs"
+ },
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/global-directory": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/global-directory/-/global-directory-4.0.1.tgz",
+ "integrity": "sha512-wHTUcDUoZ1H5/0iVqEudYW4/kAlN5cZ3j/bXn0Dpbizl9iaUVeWSHqiOjsgk6OW2bkLclbBjzewBz6weQ1zA2Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ini": "4.1.1"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/has-flag": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
+ "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/husky": {
+ "version": "9.1.6",
+ "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.6.tgz",
+ "integrity": "sha512-sqbjZKK7kf44hfdE94EoX8MZNk0n7HeW37O4YrVGCF4wzgQjp+akPAkfUK5LZ6KuR/6sqeAVuXHji+RzQgOn5A==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "husky": "bin.js"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/typicode"
+ }
+ },
+ "node_modules/import-fresh": {
+ "version": "3.3.0",
+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",
+ "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "parent-module": "^1.0.0",
+ "resolve-from": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/import-fresh/node_modules/resolve-from": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/import-meta-resolve": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.1.0.tgz",
+ "integrity": "sha512-I6fiaX09Xivtk+THaMfAwnA3MVA5Big1WHF1Dfx9hFuvNIWpXnorlkzhcQf6ehrqQiiZECRt1poOAkPmer3ruw==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/ini": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/ini/-/ini-4.1.1.tgz",
+ "integrity": "sha512-QQnnxNyfvmHFIsj7gkPcYymR8Jdw/o7mp5ZFihxn6h8Ci6fh3Dx4E1gPjpQEpIuPo9XVNY/ZUwh4BPMjGyL01g==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
+ }
+ },
+ "node_modules/is-arrayish": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
+ "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-obj": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz",
+ "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-text-path": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/is-text-path/-/is-text-path-2.0.0.tgz",
+ "integrity": "sha512-+oDTluR6WEjdXEJMnC2z6A4FRwFoYuvShVVEGsS7ewc0UTi2QtAKMDJuL4BDEVt+5T7MjFo12RP8ghOM75oKJw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "text-extensions": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/jiti": {
+ "version": "1.21.6",
+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.6.tgz",
+ "integrity": "sha512-2yTgeWTWzMWkHu6Jp9NKgePDaYHbntiwvYuuJLbbN9vl7DC9DvXKOB2BC3ZZ92D3cvV/aflH0osDfwpHepQ53w==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jiti": "bin/jiti.js"
+ }
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/js-yaml": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
+ "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^2.0.1"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/json-parse-even-better-errors": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",
+ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/jsonparse": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz",
+ "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==",
+ "dev": true,
+ "engines": [
+ "node >= 0.2.0"
+ ],
+ "license": "MIT"
+ },
+ "node_modules/JSONStream": {
+ "version": "1.3.5",
+ "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz",
+ "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==",
+ "dev": true,
+ "license": "(MIT OR Apache-2.0)",
+ "dependencies": {
+ "jsonparse": "^1.2.0",
+ "through": ">=2.2.7 <3"
+ },
+ "bin": {
+ "JSONStream": "bin.js"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/lines-and-columns": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/locate-path": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-7.2.0.tgz",
+ "integrity": "sha512-gvVijfZvn7R+2qyPX8mAuKcFGDf6Nc61GdvGafQsHL0sBIxfKzA+usWn4GFC/bk+QdwPUD4kWFJLhElipq+0VA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-locate": "^6.0.0"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/lodash.camelcase": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz",
+ "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.isplainobject": {
+ "version": "4.0.6",
+ "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",
+ "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.kebabcase": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz",
+ "integrity": "sha512-N8XRTIMMqqDgSy4VLKPnJ/+hpGZN+PHQiJnSenYqPaVV/NCqEogTnAdZLQiGKhxX+JCs8waWq2t1XHWKOmlY8g==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.merge": {
+ "version": "4.6.2",
+ "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
+ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.mergewith": {
+ "version": "4.6.2",
+ "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.2.tgz",
+ "integrity": "sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.snakecase": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz",
+ "integrity": "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.startcase": {
+ "version": "4.4.0",
+ "resolved": "https://registry.npmjs.org/lodash.startcase/-/lodash.startcase-4.4.0.tgz",
+ "integrity": "sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.uniq": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz",
+ "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.upperfirst": {
+ "version": "4.3.1",
+ "resolved": "https://registry.npmjs.org/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz",
+ "integrity": "sha512-sReKOYJIJf74dhJONhU4e0/shzi1trVbSWDOhKYE5XV2O+H7Sb2Dihwuc7xWxVl+DgFPyTqIN3zMfT9cq5iWDg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/meow": {
+ "version": "12.1.1",
+ "resolved": "https://registry.npmjs.org/meow/-/meow-12.1.1.tgz",
+ "integrity": "sha512-BhXM0Au22RwUneMPwSCnyhTOizdWoIEPU9sp0Aqa1PnDMR5Wv2FGXYDjuzJEIX+Eo2Rb8xuYe5jrnm5QowQFkw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=16.10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/minimist": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
+ "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/p-limit": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-4.0.0.tgz",
+ "integrity": "sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "yocto-queue": "^1.0.0"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/p-locate": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-6.0.0.tgz",
+ "integrity": "sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-limit": "^4.0.0"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/parent-module": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "callsites": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/parse-json": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz",
+ "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.0.0",
+ "error-ex": "^1.3.1",
+ "json-parse-even-better-errors": "^2.3.0",
+ "lines-and-columns": "^1.1.6"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/path-exists": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-5.0.0.tgz",
+ "integrity": "sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ }
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.0.tgz",
+ "integrity": "sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/require-directory": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/require-from-string": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/resolve-from": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",
+ "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/semver": {
+ "version": "7.6.3",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",
+ "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/split2": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz",
+ "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">= 10.x"
+ }
+ },
+ "node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/supports-color": {
+ "version": "5.5.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
+ "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/text-extensions": {
+ "version": "2.4.0",
+ "resolved": "https://registry.npmjs.org/text-extensions/-/text-extensions-2.4.0.tgz",
+ "integrity": "sha512-te/NtwBwfiNRLf9Ijqx3T0nlqZiQ2XrrtBvu+cLL8ZRrGkO0NHTug8MYFKyoSrv/sHTaSKfilUkizV6XhxMJ3g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/through": {
+ "version": "2.3.8",
+ "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
+ "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/tinyexec": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.0.tgz",
+ "integrity": "sha512-tVGE0mVJPGb0chKhqmsoosjsS+qUnJVGJpZgsHYQcGoPlG3B51R3PouqTgEGH2Dc9jjFyOqOpix6ZHNMXp1FZg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/typescript": {
+ "version": "5.6.2",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz",
+ "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "peer": true,
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=14.17"
+ }
+ },
+ "node_modules/undici-types": {
+ "version": "6.19.8",
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz",
+ "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/unicorn-magic": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.1.0.tgz",
+ "integrity": "sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/wrap-ansi": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/y18n": {
+ "version": "5.0.8",
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/yargs": {
+ "version": "17.7.2",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
+ "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cliui": "^8.0.1",
+ "escalade": "^3.1.1",
+ "get-caller-file": "^2.0.5",
+ "require-directory": "^2.1.1",
+ "string-width": "^4.2.3",
+ "y18n": "^5.0.5",
+ "yargs-parser": "^21.1.1"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/yargs-parser": {
+ "version": "21.1.1",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
+ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/yocto-queue": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.1.1.tgz",
+ "integrity": "sha512-b4JR1PFR10y1mKjhHY9LaGo6tmrgjit7hxVIeAmyMw3jegXR4dhYqLaQF5zMXZxY7tLpMyJeLjr1C4rLmkVe8g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 00000000..86534179
--- /dev/null
+++ b/package.json
@@ -0,0 +1,18 @@
+{
+ "name": "booking-microservices",
+ "version": "1.0.0",
+ "description": "",
+ "author": "Meysam Hadeli",
+ "license": "MIT",
+ "main": "index.js",
+ "scripts": {
+ "prepare": "husky && dotnet tool restore",
+ "format": "dotnet format booking-microservices-sample.sln --severity error --verbosity detailed",
+ "upgrade-packages": "dotnet outdated --upgrade"
+ },
+ "devDependencies": {
+ "@commitlint/cli": "^19.5.0",
+ "@commitlint/config-conventional": "^19.5.0",
+ "husky": "^9.1.6"
+ }
+}
diff --git a/src/BuildingBlocks/BuildingBlocks.csproj b/src/BuildingBlocks/BuildingBlocks.csproj
index 32abdc16..2e403685 100644
--- a/src/BuildingBlocks/BuildingBlocks.csproj
+++ b/src/BuildingBlocks/BuildingBlocks.csproj
@@ -1,39 +1,32 @@
-
-
- net8.0
- enable
- enable
-
-
-
-
+
+
-
-
+
+
-
+
-
+
-
-
+
+
-
+
@@ -42,25 +35,25 @@
-
-
-
-
-
+
+
+
+
+
-
+
-
+
-
-
+
+
@@ -70,25 +63,25 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
+
@@ -99,30 +92,19 @@
-
+
-
-
+
+
-
-
+
+
-
-
-
-
- runtime; build; native; contentfiles; analyzers; buildtransitive
- all
-
-
-
-
-
-
-
+
+
diff --git a/src/BuildingBlocks/Caching/CachingBehavior.cs b/src/BuildingBlocks/Caching/CachingBehavior.cs
index 46e5de21..231ee399 100644
--- a/src/BuildingBlocks/Caching/CachingBehavior.cs
+++ b/src/BuildingBlocks/Caching/CachingBehavior.cs
@@ -1,4 +1,4 @@
-using EasyCaching.Core;
+using EasyCaching.Core;
using MediatR;
using Microsoft.Extensions.Logging;
diff --git a/src/BuildingBlocks/Core/CQRS/ICommand.cs b/src/BuildingBlocks/Core/CQRS/ICommand.cs
index a70656d4..88a639cd 100644
--- a/src/BuildingBlocks/Core/CQRS/ICommand.cs
+++ b/src/BuildingBlocks/Core/CQRS/ICommand.cs
@@ -1,4 +1,4 @@
-using MediatR;
+using MediatR;
namespace BuildingBlocks.Core.CQRS;
diff --git a/src/BuildingBlocks/Core/CQRS/ICommandHandler.cs b/src/BuildingBlocks/Core/CQRS/ICommandHandler.cs
index 0dd760ae..e5e16cfb 100644
--- a/src/BuildingBlocks/Core/CQRS/ICommandHandler.cs
+++ b/src/BuildingBlocks/Core/CQRS/ICommandHandler.cs
@@ -1,4 +1,4 @@
-using MediatR;
+using MediatR;
namespace BuildingBlocks.Core.CQRS;
diff --git a/src/BuildingBlocks/Core/CQRS/IQuery.cs b/src/BuildingBlocks/Core/CQRS/IQuery.cs
index b967f923..2cd55d99 100644
--- a/src/BuildingBlocks/Core/CQRS/IQuery.cs
+++ b/src/BuildingBlocks/Core/CQRS/IQuery.cs
@@ -1,4 +1,4 @@
-using MediatR;
+using MediatR;
namespace BuildingBlocks.Core.CQRS;
diff --git a/src/BuildingBlocks/Core/CQRS/IQueryHandler.cs b/src/BuildingBlocks/Core/CQRS/IQueryHandler.cs
index cd1a7e92..3e4b2610 100644
--- a/src/BuildingBlocks/Core/CQRS/IQueryHandler.cs
+++ b/src/BuildingBlocks/Core/CQRS/IQueryHandler.cs
@@ -1,4 +1,4 @@
-using MediatR;
+using MediatR;
namespace BuildingBlocks.Core.CQRS;
diff --git a/src/BuildingBlocks/Core/Event/IHaveIntegrationEvent.cs b/src/BuildingBlocks/Core/Event/IHaveIntegrationEvent.cs
index ecaf3d40..7ec03a62 100644
--- a/src/BuildingBlocks/Core/Event/IHaveIntegrationEvent.cs
+++ b/src/BuildingBlocks/Core/Event/IHaveIntegrationEvent.cs
@@ -2,4 +2,4 @@ namespace BuildingBlocks.Core.Event;
public interface IHaveIntegrationEvent
{
-}
\ No newline at end of file
+}
diff --git a/src/BuildingBlocks/Core/Event/IInternalCommand.cs b/src/BuildingBlocks/Core/Event/IInternalCommand.cs
index a1dc9e17..986e8ebd 100644
--- a/src/BuildingBlocks/Core/Event/IInternalCommand.cs
+++ b/src/BuildingBlocks/Core/Event/IInternalCommand.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Core.Event;
+namespace BuildingBlocks.Core.Event;
public interface IInternalCommand : IEvent
{
diff --git a/src/BuildingBlocks/Core/Event/InternalCommand.cs b/src/BuildingBlocks/Core/Event/InternalCommand.cs
index b5ca942b..cc5bde0f 100644
--- a/src/BuildingBlocks/Core/Event/InternalCommand.cs
+++ b/src/BuildingBlocks/Core/Event/InternalCommand.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.Core.CQRS;
+using BuildingBlocks.Core.CQRS;
namespace BuildingBlocks.Core.Event;
diff --git a/src/BuildingBlocks/Core/Event/MessageEnvelope.cs b/src/BuildingBlocks/Core/Event/MessageEnvelope.cs
index b94d683f..2141de81 100644
--- a/src/BuildingBlocks/Core/Event/MessageEnvelope.cs
+++ b/src/BuildingBlocks/Core/Event/MessageEnvelope.cs
@@ -1,4 +1,4 @@
-using Google.Protobuf;
+using Google.Protobuf;
namespace BuildingBlocks.Core.Event;
diff --git a/src/BuildingBlocks/Core/EventDispatcher.cs b/src/BuildingBlocks/Core/EventDispatcher.cs
index cce86283..56daa4c7 100644
--- a/src/BuildingBlocks/Core/EventDispatcher.cs
+++ b/src/BuildingBlocks/Core/EventDispatcher.cs
@@ -83,7 +83,7 @@ await _persistMessageProcessor.PublishMessageAsync(
public async Task SendAsync(T @event, Type type = null,
CancellationToken cancellationToken = default)
where T : IEvent =>
- await SendAsync(new[] {@event}, type, cancellationToken);
+ await SendAsync(new[] { @event }, type, cancellationToken);
private Task> MapDomainEventToIntegrationEventAsync(
@@ -104,7 +104,8 @@ private Task> MapDomainEventToIntegrationEventA
var integrationEvent = _eventMapper.MapToIntegrationEvent(@event);
- if (integrationEvent is null) continue;
+ if (integrationEvent is null)
+ continue;
integrationEvents.Add(integrationEvent);
}
@@ -129,7 +130,8 @@ private Task> MapDomainEventToInternalCommandAsy
var integrationEvent = _eventMapper.MapToInternalCommand(@event);
- if (integrationEvent is null) continue;
+ if (integrationEvent is null)
+ continue;
internalCommands.Add(integrationEvent);
}
diff --git a/src/BuildingBlocks/Core/Model/Aggregate.cs b/src/BuildingBlocks/Core/Model/Aggregate.cs
index 33238e78..bd167b34 100644
--- a/src/BuildingBlocks/Core/Model/Aggregate.cs
+++ b/src/BuildingBlocks/Core/Model/Aggregate.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.Core.Event;
+using BuildingBlocks.Core.Event;
namespace BuildingBlocks.Core.Model;
diff --git a/src/BuildingBlocks/Core/Model/Entity.cs b/src/BuildingBlocks/Core/Model/Entity.cs
index 50da2c83..c0133d75 100644
--- a/src/BuildingBlocks/Core/Model/Entity.cs
+++ b/src/BuildingBlocks/Core/Model/Entity.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Core.Model;
+namespace BuildingBlocks.Core.Model;
public abstract record Entity : IEntity
{
diff --git a/src/BuildingBlocks/Core/Model/IAggregate.cs b/src/BuildingBlocks/Core/Model/IAggregate.cs
index 4f42b6d0..73e6cd0b 100644
--- a/src/BuildingBlocks/Core/Model/IAggregate.cs
+++ b/src/BuildingBlocks/Core/Model/IAggregate.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.Core.Event;
+using BuildingBlocks.Core.Event;
namespace BuildingBlocks.Core.Model;
diff --git a/src/BuildingBlocks/Core/Model/IEntity.cs b/src/BuildingBlocks/Core/Model/IEntity.cs
index 71820980..d385b186 100644
--- a/src/BuildingBlocks/Core/Model/IEntity.cs
+++ b/src/BuildingBlocks/Core/Model/IEntity.cs
@@ -1,11 +1,11 @@
-namespace BuildingBlocks.Core.Model;
+namespace BuildingBlocks.Core.Model;
public interface IEntity : IEntity
{
public T Id { get; set; }
}
-public interface IEntity: IVersion
+public interface IEntity : IVersion
{
public DateTime? CreatedAt { get; set; }
public long? CreatedBy { get; set; }
diff --git a/src/BuildingBlocks/Core/Model/IVersion.cs b/src/BuildingBlocks/Core/Model/IVersion.cs
index e2b3138a..6e41ee03 100644
--- a/src/BuildingBlocks/Core/Model/IVersion.cs
+++ b/src/BuildingBlocks/Core/Model/IVersion.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Core.Model;
+namespace BuildingBlocks.Core.Model;
// For handling optimistic concurrency
public interface IVersion
diff --git a/src/BuildingBlocks/Core/Pagination/Extensions.cs b/src/BuildingBlocks/Core/Pagination/Extensions.cs
index d5a94e43..9a3f263a 100644
--- a/src/BuildingBlocks/Core/Pagination/Extensions.cs
+++ b/src/BuildingBlocks/Core/Pagination/Extensions.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Core.Pagination;
+namespace BuildingBlocks.Core.Pagination;
using Sieve.Models;
using Sieve.Services;
diff --git a/src/BuildingBlocks/Core/Pagination/IPageList.cs b/src/BuildingBlocks/Core/Pagination/IPageList.cs
index f1952443..e84ee65e 100644
--- a/src/BuildingBlocks/Core/Pagination/IPageList.cs
+++ b/src/BuildingBlocks/Core/Pagination/IPageList.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Core.Pagination;
+namespace BuildingBlocks.Core.Pagination;
public interface IPageList
where T : class
diff --git a/src/BuildingBlocks/Core/Pagination/IPageQuery.cs b/src/BuildingBlocks/Core/Pagination/IPageQuery.cs
index a8bc4b71..5a19d88a 100644
--- a/src/BuildingBlocks/Core/Pagination/IPageQuery.cs
+++ b/src/BuildingBlocks/Core/Pagination/IPageQuery.cs
@@ -1,6 +1,7 @@
-namespace BuildingBlocks.Core.Pagination;
+namespace BuildingBlocks.Core.Pagination;
using MediatR;
public interface IPageQuery : IPageRequest, IRequest
- where TResponse : class { }
+ where TResponse : class
+{ }
diff --git a/src/BuildingBlocks/Core/Pagination/IPageRequest.cs b/src/BuildingBlocks/Core/Pagination/IPageRequest.cs
index d904308b..1e9a462a 100644
--- a/src/BuildingBlocks/Core/Pagination/IPageRequest.cs
+++ b/src/BuildingBlocks/Core/Pagination/IPageRequest.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Core.Pagination;
+namespace BuildingBlocks.Core.Pagination;
public interface IPageRequest
{
diff --git a/src/BuildingBlocks/Core/Pagination/PageList.cs b/src/BuildingBlocks/Core/Pagination/PageList.cs
index 44f90a33..70ba0e11 100644
--- a/src/BuildingBlocks/Core/Pagination/PageList.cs
+++ b/src/BuildingBlocks/Core/Pagination/PageList.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Core.Pagination;
+namespace BuildingBlocks.Core.Pagination;
public record PageList(IReadOnlyList Items, int PageNumber, int PageSize, int TotalCount) : IPageList
where T : class
diff --git a/src/BuildingBlocks/EFCore/AppDbContextBase.cs b/src/BuildingBlocks/EFCore/AppDbContextBase.cs
index b9d1996a..1fd548ec 100644
--- a/src/BuildingBlocks/EFCore/AppDbContextBase.cs
+++ b/src/BuildingBlocks/EFCore/AppDbContextBase.cs
@@ -32,7 +32,8 @@ protected override void OnModelCreating(ModelBuilder builder)
public async Task BeginTransactionAsync(CancellationToken cancellationToken = default)
{
- if (_currentTransaction != null) return;
+ if (_currentTransaction != null)
+ return;
_currentTransaction = await Database.BeginTransactionAsync(IsolationLevel.ReadCommitted, cancellationToken);
}
diff --git a/src/BuildingBlocks/EFCore/DesignTimeDbContextFactoryBase.cs b/src/BuildingBlocks/EFCore/DesignTimeDbContextFactoryBase.cs
index c3c3e2ba..a1bd716c 100644
--- a/src/BuildingBlocks/EFCore/DesignTimeDbContextFactoryBase.cs
+++ b/src/BuildingBlocks/EFCore/DesignTimeDbContextFactoryBase.cs
@@ -6,7 +6,7 @@
namespace BuildingBlocks.EFCore
{
- public abstract class DesignTimeDbContextFactoryBase : IDesignTimeDbContextFactory where TContext : DbContext
+ public abstract class DesignTimeDbContextFactoryBase : IDesignTimeDbContextFactory where TContext : DbContext
{
public TContext CreateDbContext(string[] args)
{
@@ -59,4 +59,4 @@ private TContext Create(string connectionString)
return CreateNewInstance(options);
}
}
-}
\ No newline at end of file
+}
diff --git a/src/BuildingBlocks/EFCore/EfTxBehavior.cs b/src/BuildingBlocks/EFCore/EfTxBehavior.cs
index a528f4af..3323f946 100644
--- a/src/BuildingBlocks/EFCore/EfTxBehavior.cs
+++ b/src/BuildingBlocks/EFCore/EfTxBehavior.cs
@@ -50,9 +50,9 @@ public async Task Handle(TRequest request, RequestHandlerDelegate
+ .AddSingleton(x =>
{
var eventStoreOptions = services.GetOptions(nameof(EventStoreOptions));
return new EventStoreClient(EventStoreClientSettings.Create(eventStoreOptions.ConnectionString));
diff --git a/src/BuildingBlocks/EventStoreDB/Events/AggregateEventSourcing.cs b/src/BuildingBlocks/EventStoreDB/Events/AggregateEventSourcing.cs
index d9578b17..00476f30 100644
--- a/src/BuildingBlocks/EventStoreDB/Events/AggregateEventSourcing.cs
+++ b/src/BuildingBlocks/EventStoreDB/Events/AggregateEventSourcing.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.Core.Event;
+using BuildingBlocks.Core.Event;
using BuildingBlocks.Core.Model;
namespace BuildingBlocks.EventStoreDB.Events
diff --git a/src/BuildingBlocks/EventStoreDB/Events/AggregateStreamExtensions.cs b/src/BuildingBlocks/EventStoreDB/Events/AggregateStreamExtensions.cs
index 34452d84..56447f0d 100644
--- a/src/BuildingBlocks/EventStoreDB/Events/AggregateStreamExtensions.cs
+++ b/src/BuildingBlocks/EventStoreDB/Events/AggregateStreamExtensions.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.EventStoreDB.Serialization;
+using BuildingBlocks.EventStoreDB.Serialization;
using EventStore.Client;
namespace BuildingBlocks.EventStoreDB.Events;
diff --git a/src/BuildingBlocks/EventStoreDB/Events/EventTypeMapper.cs b/src/BuildingBlocks/EventStoreDB/Events/EventTypeMapper.cs
index 3891dff4..d8dbe8d5 100644
--- a/src/BuildingBlocks/EventStoreDB/Events/EventTypeMapper.cs
+++ b/src/BuildingBlocks/EventStoreDB/Events/EventTypeMapper.cs
@@ -1,4 +1,4 @@
-using System.Collections.Concurrent;
+using System.Collections.Concurrent;
using BuildingBlocks.Utils;
namespace BuildingBlocks.EventStoreDB.Events;
diff --git a/src/BuildingBlocks/EventStoreDB/Events/IEventHandler.cs b/src/BuildingBlocks/EventStoreDB/Events/IEventHandler.cs
index 90c0a09b..bb0ed356 100644
--- a/src/BuildingBlocks/EventStoreDB/Events/IEventHandler.cs
+++ b/src/BuildingBlocks/EventStoreDB/Events/IEventHandler.cs
@@ -3,7 +3,7 @@
namespace BuildingBlocks.EventStoreDB.Events;
-public interface IEventHandler: INotificationHandler
+public interface IEventHandler : INotificationHandler
where TEvent : IEvent
{
}
diff --git a/src/BuildingBlocks/EventStoreDB/Events/IExternalEvent.cs b/src/BuildingBlocks/EventStoreDB/Events/IExternalEvent.cs
index bfc42fc9..c95e20c3 100644
--- a/src/BuildingBlocks/EventStoreDB/Events/IExternalEvent.cs
+++ b/src/BuildingBlocks/EventStoreDB/Events/IExternalEvent.cs
@@ -2,6 +2,6 @@
namespace BuildingBlocks.EventStoreDB.Events;
-public interface IExternalEvent: IEvent
+public interface IExternalEvent : IEvent
{
}
diff --git a/src/BuildingBlocks/EventStoreDB/Events/IProjection.cs b/src/BuildingBlocks/EventStoreDB/Events/IProjection.cs
index 272a213a..aac706ae 100644
--- a/src/BuildingBlocks/EventStoreDB/Events/IProjection.cs
+++ b/src/BuildingBlocks/EventStoreDB/Events/IProjection.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.EventStoreDB.Events;
+namespace BuildingBlocks.EventStoreDB.Events;
public interface IProjection
{
diff --git a/src/BuildingBlocks/EventStoreDB/Events/StreamEvent.cs b/src/BuildingBlocks/EventStoreDB/Events/StreamEvent.cs
index 2836b3ed..b6085b31 100644
--- a/src/BuildingBlocks/EventStoreDB/Events/StreamEvent.cs
+++ b/src/BuildingBlocks/EventStoreDB/Events/StreamEvent.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.Core.Event;
+using BuildingBlocks.Core.Event;
namespace BuildingBlocks.EventStoreDB.Events;
@@ -7,7 +7,7 @@ public record EventMetadata(
ulong LogPosition
);
-public class StreamEvent: IEvent
+public class StreamEvent : IEvent
{
public object Data { get; }
public EventMetadata Metadata { get; }
@@ -19,7 +19,7 @@ public StreamEvent(object data, EventMetadata metadata)
}
}
-public class StreamEvent: StreamEvent where T: notnull
+public class StreamEvent : StreamEvent where T : notnull
{
public new T Data => (T)base.Data;
diff --git a/src/BuildingBlocks/EventStoreDB/Events/StreamEventExtensions.cs b/src/BuildingBlocks/EventStoreDB/Events/StreamEventExtensions.cs
index ccfdcc3f..11e97a24 100644
--- a/src/BuildingBlocks/EventStoreDB/Events/StreamEventExtensions.cs
+++ b/src/BuildingBlocks/EventStoreDB/Events/StreamEventExtensions.cs
@@ -1,4 +1,4 @@
-using System.Diagnostics.Eventing.Reader;
+using System.Diagnostics.Eventing.Reader;
using BuildingBlocks.EventStoreDB.Serialization;
using EventStore.Client;
diff --git a/src/BuildingBlocks/EventStoreDB/Events/StreamNameMapper.cs b/src/BuildingBlocks/EventStoreDB/Events/StreamNameMapper.cs
index 1013026c..0c4e871a 100644
--- a/src/BuildingBlocks/EventStoreDB/Events/StreamNameMapper.cs
+++ b/src/BuildingBlocks/EventStoreDB/Events/StreamNameMapper.cs
@@ -1,4 +1,4 @@
-using System.Collections.Concurrent;
+using System.Collections.Concurrent;
namespace BuildingBlocks.EventStoreDB.Events;
@@ -20,7 +20,7 @@ public static string ToStreamId(object aggregateId, object? tenantId =
public static string ToStreamId(Type streamType, object aggregateId, object? tenantId = null)
{
- var tenantPrefix = tenantId != null ? $"{tenantId}_" : "";
+ var tenantPrefix = tenantId != null ? $"{tenantId}_" : "";
return $"{tenantPrefix}{streamType.Name}-{aggregateId}";
}
diff --git a/src/BuildingBlocks/EventStoreDB/Extensions.cs b/src/BuildingBlocks/EventStoreDB/Extensions.cs
index ea16d745..f1f3ac84 100644
--- a/src/BuildingBlocks/EventStoreDB/Extensions.cs
+++ b/src/BuildingBlocks/EventStoreDB/Extensions.cs
@@ -1,4 +1,4 @@
-using System.Reflection;
+using System.Reflection;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
diff --git a/src/BuildingBlocks/EventStoreDB/Repository/EventStoreDBRepository.cs b/src/BuildingBlocks/EventStoreDB/Repository/EventStoreDBRepository.cs
index 767e19a9..6d7e34ae 100644
--- a/src/BuildingBlocks/EventStoreDB/Repository/EventStoreDBRepository.cs
+++ b/src/BuildingBlocks/EventStoreDB/Repository/EventStoreDBRepository.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.EventStoreDB.Events;
+using BuildingBlocks.EventStoreDB.Events;
using BuildingBlocks.EventStoreDB.Serialization;
using EventStore.Client;
diff --git a/src/BuildingBlocks/EventStoreDB/Repository/RepositoryExtensions.cs b/src/BuildingBlocks/EventStoreDB/Repository/RepositoryExtensions.cs
index 79ba2718..32a4909d 100644
--- a/src/BuildingBlocks/EventStoreDB/Repository/RepositoryExtensions.cs
+++ b/src/BuildingBlocks/EventStoreDB/Repository/RepositoryExtensions.cs
@@ -28,6 +28,6 @@ public static async Task GetAndUpdate(
action(entity);
- return await repository.Update(entity, expectedVersion,cancellationToken);
+ return await repository.Update(entity, expectedVersion, cancellationToken);
}
}
diff --git a/src/BuildingBlocks/EventStoreDB/Serialization/EventStoreDBSerializer.cs b/src/BuildingBlocks/EventStoreDB/Serialization/EventStoreDBSerializer.cs
index fbdd8a04..6665e9b2 100644
--- a/src/BuildingBlocks/EventStoreDB/Serialization/EventStoreDBSerializer.cs
+++ b/src/BuildingBlocks/EventStoreDB/Serialization/EventStoreDBSerializer.cs
@@ -1,4 +1,4 @@
-using System.Text;
+using System.Text;
using BuildingBlocks.EventStoreDB.Events;
using EventStore.Client;
using Newtonsoft.Json;
diff --git a/src/BuildingBlocks/EventStoreDB/Serialization/JsonObjectContractProvider.cs b/src/BuildingBlocks/EventStoreDB/Serialization/JsonObjectContractProvider.cs
index b4fc37c0..e8dc66aa 100644
--- a/src/BuildingBlocks/EventStoreDB/Serialization/JsonObjectContractProvider.cs
+++ b/src/BuildingBlocks/EventStoreDB/Serialization/JsonObjectContractProvider.cs
@@ -1,4 +1,4 @@
-using System.Collections.Concurrent;
+using System.Collections.Concurrent;
using System.Reflection;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
@@ -18,7 +18,8 @@ public static JsonObjectContract UsingNonDefaultConstructor(
{
var nonDefaultConstructor = GetNonDefaultConstructor(objectType);
- if (nonDefaultConstructor == null) return contract;
+ if (nonDefaultConstructor == null)
+ return contract;
contract.OverrideCreator = GetObjectConstructor(nonDefaultConstructor);
contract.CreatorParameters.Clear();
diff --git a/src/BuildingBlocks/EventStoreDB/Serialization/NonDefaultConstructorContractResolver.cs b/src/BuildingBlocks/EventStoreDB/Serialization/NonDefaultConstructorContractResolver.cs
index b651a474..dd18eff7 100644
--- a/src/BuildingBlocks/EventStoreDB/Serialization/NonDefaultConstructorContractResolver.cs
+++ b/src/BuildingBlocks/EventStoreDB/Serialization/NonDefaultConstructorContractResolver.cs
@@ -1,8 +1,8 @@
-using Newtonsoft.Json.Serialization;
+using Newtonsoft.Json.Serialization;
namespace BuildingBlocks.EventStoreDB.Serialization;
-public class NonDefaultConstructorContractResolver: DefaultContractResolver
+public class NonDefaultConstructorContractResolver : DefaultContractResolver
{
protected override JsonObjectContract CreateObjectContract(Type objectType)
{
diff --git a/src/BuildingBlocks/EventStoreDB/Subscriptions/EventStoreDBSubscriptionCheckpointRepository.cs b/src/BuildingBlocks/EventStoreDB/Subscriptions/EventStoreDBSubscriptionCheckpointRepository.cs
index ea58df79..1f2b71b8 100644
--- a/src/BuildingBlocks/EventStoreDB/Subscriptions/EventStoreDBSubscriptionCheckpointRepository.cs
+++ b/src/BuildingBlocks/EventStoreDB/Subscriptions/EventStoreDBSubscriptionCheckpointRepository.cs
@@ -1,13 +1,13 @@
-using BuildingBlocks.Core.Event;
+using BuildingBlocks.Core.Event;
using BuildingBlocks.EventStoreDB.Events;
using BuildingBlocks.EventStoreDB.Serialization;
using EventStore.Client;
namespace BuildingBlocks.EventStoreDB.Subscriptions;
-public record CheckpointStored(string SubscriptionId, ulong? Position, DateTime CheckpointedAt): IEvent;
+public record CheckpointStored(string SubscriptionId, ulong? Position, DateTime CheckpointedAt) : IEvent;
-public class EventStoreDBSubscriptionCheckpointRepository: ISubscriptionCheckpointRepository
+public class EventStoreDBSubscriptionCheckpointRepository : ISubscriptionCheckpointRepository
{
private readonly EventStoreClient eventStoreClient;
@@ -37,7 +37,7 @@ public EventStoreDBSubscriptionCheckpointRepository(
public async ValueTask Store(string subscriptionId, ulong position, CancellationToken ct)
{
var @event = new CheckpointStored(subscriptionId, position, DateTime.UtcNow);
- var eventToAppend = new[] {@event.ToJsonEventData()};
+ var eventToAppend = new[] { @event.ToJsonEventData() };
var streamName = GetCheckpointStreamName(subscriptionId);
try
diff --git a/src/BuildingBlocks/EventStoreDB/Subscriptions/EventStoreDBSubscriptionToAll.cs b/src/BuildingBlocks/EventStoreDB/Subscriptions/EventStoreDBSubscriptionToAll.cs
index d371806c..4832e3d8 100644
--- a/src/BuildingBlocks/EventStoreDB/Subscriptions/EventStoreDBSubscriptionToAll.cs
+++ b/src/BuildingBlocks/EventStoreDB/Subscriptions/EventStoreDBSubscriptionToAll.cs
@@ -79,7 +79,8 @@ private async Task HandleEvent(StreamSubscription subscription, ResolvedEvent re
{
try
{
- if (IsEventWithEmptyData(resolvedEvent) || IsCheckpointEvent(resolvedEvent)) return;
+ if (IsEventWithEmptyData(resolvedEvent) || IsCheckpointEvent(resolvedEvent))
+ return;
var streamEvent = resolvedEvent.ToStreamEvent();
@@ -123,7 +124,7 @@ private void HandleDrop(StreamSubscription _, SubscriptionDroppedReason reason,
reason
);
- if (exception is RpcException {StatusCode: StatusCode.Cancelled})
+ if (exception is RpcException { StatusCode: StatusCode.Cancelled })
return;
Resubscribe();
@@ -172,7 +173,8 @@ private void Resubscribe()
private bool IsEventWithEmptyData(ResolvedEvent resolvedEvent)
{
- if (resolvedEvent.Event.Data.Length != 0) return false;
+ if (resolvedEvent.Event.Data.Length != 0)
+ return false;
logger.LogInformation("Event without data received");
return true;
@@ -180,7 +182,8 @@ private bool IsEventWithEmptyData(ResolvedEvent resolvedEvent)
private bool IsCheckpointEvent(ResolvedEvent resolvedEvent)
{
- if (resolvedEvent.Event.EventType != EventTypeMapper.ToName()) return false;
+ if (resolvedEvent.Event.EventType != EventTypeMapper.ToName())
+ return false;
logger.LogInformation("Checkpoint event - ignoring");
return true;
diff --git a/src/BuildingBlocks/EventStoreDB/Subscriptions/ISubscriptionCheckpointRepository.cs b/src/BuildingBlocks/EventStoreDB/Subscriptions/ISubscriptionCheckpointRepository.cs
index d65dd46f..07a7062b 100644
--- a/src/BuildingBlocks/EventStoreDB/Subscriptions/ISubscriptionCheckpointRepository.cs
+++ b/src/BuildingBlocks/EventStoreDB/Subscriptions/ISubscriptionCheckpointRepository.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.EventStoreDB.Subscriptions;
+namespace BuildingBlocks.EventStoreDB.Subscriptions;
public interface ISubscriptionCheckpointRepository
{
diff --git a/src/BuildingBlocks/EventStoreDB/Subscriptions/InMemorySubscriptionCheckpointRepository.cs b/src/BuildingBlocks/EventStoreDB/Subscriptions/InMemorySubscriptionCheckpointRepository.cs
index 9b90fa1f..59e95d01 100644
--- a/src/BuildingBlocks/EventStoreDB/Subscriptions/InMemorySubscriptionCheckpointRepository.cs
+++ b/src/BuildingBlocks/EventStoreDB/Subscriptions/InMemorySubscriptionCheckpointRepository.cs
@@ -1,4 +1,4 @@
-using System.Collections.Concurrent;
+using System.Collections.Concurrent;
namespace BuildingBlocks.EventStoreDB.Subscriptions;
diff --git a/src/BuildingBlocks/Exception/AppException.cs b/src/BuildingBlocks/Exception/AppException.cs
index 08f8b8eb..978ee6d9 100644
--- a/src/BuildingBlocks/Exception/AppException.cs
+++ b/src/BuildingBlocks/Exception/AppException.cs
@@ -17,7 +17,7 @@ public AppException(string message, HttpStatusCode statusCode, int? code = null)
{
}
- public AppException(string message, System.Exception innerException, int? code = null) : base(message, innerException, code: code)
+ public AppException(string message, System.Exception innerException, int? code = null) : base(message, innerException, code: code)
{
}
}
diff --git a/src/BuildingBlocks/Exception/InternalServerException.cs b/src/BuildingBlocks/Exception/InternalServerException.cs
index d917560a..c8c603dc 100644
--- a/src/BuildingBlocks/Exception/InternalServerException.cs
+++ b/src/BuildingBlocks/Exception/InternalServerException.cs
@@ -11,7 +11,7 @@ public InternalServerException() : base() { }
public InternalServerException(string message, int? code) : base(message, HttpStatusCode.InternalServerError, code: code) { }
public InternalServerException(string message, int? code = null, params object[] args)
- : base(message:String.Format(CultureInfo.CurrentCulture, message, args, HttpStatusCode.InternalServerError, code))
+ : base(message: String.Format(CultureInfo.CurrentCulture, message, args, HttpStatusCode.InternalServerError, code))
{
}
}
diff --git a/src/BuildingBlocks/Exception/ProblemDetailsWithCode.cs b/src/BuildingBlocks/Exception/ProblemDetailsWithCode.cs
index b22b881c..c9f4fecc 100644
--- a/src/BuildingBlocks/Exception/ProblemDetailsWithCode.cs
+++ b/src/BuildingBlocks/Exception/ProblemDetailsWithCode.cs
@@ -1,4 +1,4 @@
-using System.Text.Json.Serialization;
+using System.Text.Json.Serialization;
using Microsoft.AspNetCore.Mvc;
namespace BuildingBlocks.Exception;
diff --git a/src/BuildingBlocks/HealthCheck/Extensions.cs b/src/BuildingBlocks/HealthCheck/Extensions.cs
index 4bf9d5ca..bd8623ed 100644
--- a/src/BuildingBlocks/HealthCheck/Extensions.cs
+++ b/src/BuildingBlocks/HealthCheck/Extensions.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.EFCore;
+using BuildingBlocks.EFCore;
using BuildingBlocks.Logging;
using BuildingBlocks.MassTransit;
using BuildingBlocks.Mongo;
@@ -18,7 +18,8 @@ public static IServiceCollection AddCustomHealthCheck(this IServiceCollection se
{
var healthOptions = services.GetOptions(nameof(HealthOptions));
- if (!healthOptions.Enabled) return services;
+ if (!healthOptions.Enabled)
+ return services;
var appOptions = services.GetOptions(nameof(AppOptions));
var postgresOptions = services.GetOptions(nameof(PostgresOptions));
@@ -51,7 +52,8 @@ public static WebApplication UseCustomHealthCheck(this WebApplication app)
{
var healthOptions = app.Configuration.GetOptions(nameof(HealthOptions));
- if (!healthOptions.Enabled) return app;
+ if (!healthOptions.Enabled)
+ return app;
app.UseHealthChecks("/healthz",
new HealthCheckOptions
diff --git a/src/BuildingBlocks/HealthCheck/HealthOptions.cs b/src/BuildingBlocks/HealthCheck/HealthOptions.cs
index 7b983010..759158ed 100644
--- a/src/BuildingBlocks/HealthCheck/HealthOptions.cs
+++ b/src/BuildingBlocks/HealthCheck/HealthOptions.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.HealthCheck;
+namespace BuildingBlocks.HealthCheck;
public class HealthOptions
{
diff --git a/src/BuildingBlocks/Jwt/JwtExtensions.cs b/src/BuildingBlocks/Jwt/JwtExtensions.cs
index 41c9f4c4..e46738ee 100644
--- a/src/BuildingBlocks/Jwt/JwtExtensions.cs
+++ b/src/BuildingBlocks/Jwt/JwtExtensions.cs
@@ -13,10 +13,11 @@ public static IServiceCollection AddJwt(this IServiceCollection services)
{
var jwtOptions = services.GetOptions("Jwt");
- services.AddAuthentication(o => {
- o.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme;
- o.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme;
- })
+ services.AddAuthentication(o =>
+ {
+ o.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme;
+ o.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme;
+ })
.AddCookie(cfg => cfg.SlidingExpiration = true)
.AddJwtBearer(JwtBearerDefaults.AuthenticationScheme, options =>
{
@@ -27,7 +28,7 @@ public static IServiceCollection AddJwt(this IServiceCollection services)
ClockSkew = TimeSpan.FromSeconds(2) // For prevent add default value (5min) to life time token!
};
options.RequireHttpsMetadata = jwtOptions.RequireHttpsMetadata;
- options.MetadataAddress= jwtOptions.MetadataAddress;
+ options.MetadataAddress = jwtOptions.MetadataAddress;
});
if (!string.IsNullOrEmpty(jwtOptions.Audience))
diff --git a/src/BuildingBlocks/Logging/ElasticOptions.cs b/src/BuildingBlocks/Logging/ElasticOptions.cs
index 5c577585..65e210ba 100644
--- a/src/BuildingBlocks/Logging/ElasticOptions.cs
+++ b/src/BuildingBlocks/Logging/ElasticOptions.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Logging;
+namespace BuildingBlocks.Logging;
public class ElasticOptions
{
diff --git a/src/BuildingBlocks/Logging/Extensions.cs b/src/BuildingBlocks/Logging/Extensions.cs
index 5fa12884..b0cb4913 100644
--- a/src/BuildingBlocks/Logging/Extensions.cs
+++ b/src/BuildingBlocks/Logging/Extensions.cs
@@ -1,4 +1,4 @@
-using System.Text;
+using System.Text;
using BuildingBlocks.Web;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
@@ -49,7 +49,7 @@ public static WebApplicationBuilder AddCustomSerilog(this WebApplicationBuilder
}
- if (logOptions?.Sentry is {Enabled: true})
+ if (logOptions?.Sentry is { Enabled: true })
{
var minimumBreadcrumbLevel = Enum.TryParse(logOptions.Level, true, out var minBreadcrumbLevel)
? minBreadcrumbLevel
diff --git a/src/BuildingBlocks/Logging/FileOptions.cs b/src/BuildingBlocks/Logging/FileOptions.cs
index 223e824d..b3ad6236 100644
--- a/src/BuildingBlocks/Logging/FileOptions.cs
+++ b/src/BuildingBlocks/Logging/FileOptions.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Logging;
+namespace BuildingBlocks.Logging;
public class FileOptions
{
diff --git a/src/BuildingBlocks/Logging/LogEnrichHelper.cs b/src/BuildingBlocks/Logging/LogEnrichHelper.cs
index ecf5c6c4..185cf325 100644
--- a/src/BuildingBlocks/Logging/LogEnrichHelper.cs
+++ b/src/BuildingBlocks/Logging/LogEnrichHelper.cs
@@ -1,4 +1,4 @@
-using System.Security.Claims;
+using System.Security.Claims;
using Microsoft.AspNetCore.Http;
using Serilog;
@@ -17,7 +17,7 @@ public static void EnrichFromRequest(IDiagnosticContext diagnosticContext, HttpC
diagnosticContext.Set("Scheme", request.Scheme);
// Only set it if available. You're not sending sensitive data in a querystring right?!
- if(request.QueryString.HasValue)
+ if (request.QueryString.HasValue)
{
diagnosticContext.Set("QueryString", request.QueryString.Value);
}
diff --git a/src/BuildingBlocks/Logging/LogOptions.cs b/src/BuildingBlocks/Logging/LogOptions.cs
index c7d880d8..8fac194e 100644
--- a/src/BuildingBlocks/Logging/LogOptions.cs
+++ b/src/BuildingBlocks/Logging/LogOptions.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Logging
+namespace BuildingBlocks.Logging
{
public class LogOptions
{
diff --git a/src/BuildingBlocks/Logging/SentryOptions.cs b/src/BuildingBlocks/Logging/SentryOptions.cs
index 3b036d2b..8556bbe2 100644
--- a/src/BuildingBlocks/Logging/SentryOptions.cs
+++ b/src/BuildingBlocks/Logging/SentryOptions.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Logging;
+namespace BuildingBlocks.Logging;
public class SentryOptions
{
diff --git a/src/BuildingBlocks/MassTransit/ConsumeFilter.cs b/src/BuildingBlocks/MassTransit/ConsumeFilter.cs
index a4f7c9b8..2238e987 100644
--- a/src/BuildingBlocks/MassTransit/ConsumeFilter.cs
+++ b/src/BuildingBlocks/MassTransit/ConsumeFilter.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.Core.Event;
+using BuildingBlocks.Core.Event;
using BuildingBlocks.PersistMessageProcessor;
using MassTransit;
diff --git a/src/BuildingBlocks/PersistMessageProcessor/Data/Configurations/PersistMessageConfiguration.cs b/src/BuildingBlocks/PersistMessageProcessor/Data/Configurations/PersistMessageConfiguration.cs
index 3142840e..8395030b 100644
--- a/src/BuildingBlocks/PersistMessageProcessor/Data/Configurations/PersistMessageConfiguration.cs
+++ b/src/BuildingBlocks/PersistMessageProcessor/Data/Configurations/PersistMessageConfiguration.cs
@@ -1,4 +1,4 @@
-using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace BuildingBlocks.PersistMessageProcessor.Data.Configurations;
diff --git a/src/BuildingBlocks/PersistMessageProcessor/Data/PersistMessageDbContext.cs b/src/BuildingBlocks/PersistMessageProcessor/Data/PersistMessageDbContext.cs
index e7eacb7a..4e569a46 100644
--- a/src/BuildingBlocks/PersistMessageProcessor/Data/PersistMessageDbContext.cs
+++ b/src/BuildingBlocks/PersistMessageProcessor/Data/PersistMessageDbContext.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.EFCore;
+using BuildingBlocks.EFCore;
using Microsoft.EntityFrameworkCore;
namespace BuildingBlocks.PersistMessageProcessor.Data;
diff --git a/src/BuildingBlocks/PersistMessageProcessor/Extensions.cs b/src/BuildingBlocks/PersistMessageProcessor/Extensions.cs
index b91768ad..3ef16900 100644
--- a/src/BuildingBlocks/PersistMessageProcessor/Extensions.cs
+++ b/src/BuildingBlocks/PersistMessageProcessor/Extensions.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.PersistMessageProcessor.Data;
+using BuildingBlocks.PersistMessageProcessor.Data;
using BuildingBlocks.Web;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
diff --git a/src/BuildingBlocks/PersistMessageProcessor/IPersistMessageDbContext.cs b/src/BuildingBlocks/PersistMessageProcessor/IPersistMessageDbContext.cs
index 2995a311..b91888ec 100644
--- a/src/BuildingBlocks/PersistMessageProcessor/IPersistMessageDbContext.cs
+++ b/src/BuildingBlocks/PersistMessageProcessor/IPersistMessageDbContext.cs
@@ -1,4 +1,4 @@
-using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore;
namespace BuildingBlocks.PersistMessageProcessor;
diff --git a/src/BuildingBlocks/PersistMessageProcessor/IPersistMessageProcessor.cs b/src/BuildingBlocks/PersistMessageProcessor/IPersistMessageProcessor.cs
index f83beda0..a33a377f 100644
--- a/src/BuildingBlocks/PersistMessageProcessor/IPersistMessageProcessor.cs
+++ b/src/BuildingBlocks/PersistMessageProcessor/IPersistMessageProcessor.cs
@@ -1,4 +1,4 @@
-using System.Linq.Expressions;
+using System.Linq.Expressions;
using BuildingBlocks.Core.Event;
namespace BuildingBlocks.PersistMessageProcessor;
diff --git a/src/BuildingBlocks/PersistMessageProcessor/MessageDeliveryType.cs b/src/BuildingBlocks/PersistMessageProcessor/MessageDeliveryType.cs
index 9fb5dc2b..8d690aad 100644
--- a/src/BuildingBlocks/PersistMessageProcessor/MessageDeliveryType.cs
+++ b/src/BuildingBlocks/PersistMessageProcessor/MessageDeliveryType.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.PersistMessageProcessor;
+namespace BuildingBlocks.PersistMessageProcessor;
[Flags]
public enum MessageDeliveryType
diff --git a/src/BuildingBlocks/PersistMessageProcessor/MessageStatus.cs b/src/BuildingBlocks/PersistMessageProcessor/MessageStatus.cs
index 028053fd..039d65e7 100644
--- a/src/BuildingBlocks/PersistMessageProcessor/MessageStatus.cs
+++ b/src/BuildingBlocks/PersistMessageProcessor/MessageStatus.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.PersistMessageProcessor;
+namespace BuildingBlocks.PersistMessageProcessor;
public enum MessageStatus
{
diff --git a/src/BuildingBlocks/PersistMessageProcessor/PersistMessage.cs b/src/BuildingBlocks/PersistMessageProcessor/PersistMessage.cs
index 42d0ca5b..3e2110f2 100644
--- a/src/BuildingBlocks/PersistMessageProcessor/PersistMessage.cs
+++ b/src/BuildingBlocks/PersistMessageProcessor/PersistMessage.cs
@@ -1,8 +1,8 @@
-namespace BuildingBlocks.PersistMessageProcessor;
+namespace BuildingBlocks.PersistMessageProcessor;
using Core.Model;
-public class PersistMessage: IVersion
+public class PersistMessage : IVersion
{
public PersistMessage(Guid id, string dataType, string data, MessageDeliveryType deliveryType)
{
diff --git a/src/BuildingBlocks/PersistMessageProcessor/PersistMessageBackgroundService.cs b/src/BuildingBlocks/PersistMessageProcessor/PersistMessageBackgroundService.cs
index 36deb533..0c0caf1e 100644
--- a/src/BuildingBlocks/PersistMessageProcessor/PersistMessageBackgroundService.cs
+++ b/src/BuildingBlocks/PersistMessageProcessor/PersistMessageBackgroundService.cs
@@ -1,4 +1,4 @@
-using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
diff --git a/src/BuildingBlocks/PersistMessageProcessor/PersistMessageOptions.cs b/src/BuildingBlocks/PersistMessageProcessor/PersistMessageOptions.cs
index 2e16591e..535f9fc3 100644
--- a/src/BuildingBlocks/PersistMessageProcessor/PersistMessageOptions.cs
+++ b/src/BuildingBlocks/PersistMessageProcessor/PersistMessageOptions.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.PersistMessageProcessor;
+namespace BuildingBlocks.PersistMessageProcessor;
public class PersistMessageOptions
{
diff --git a/src/BuildingBlocks/PersistMessageProcessor/PersistMessageProcessor.cs b/src/BuildingBlocks/PersistMessageProcessor/PersistMessageProcessor.cs
index 5ada23a7..7042b5c8 100644
--- a/src/BuildingBlocks/PersistMessageProcessor/PersistMessageProcessor.cs
+++ b/src/BuildingBlocks/PersistMessageProcessor/PersistMessageProcessor.cs
@@ -1,4 +1,4 @@
-using System.Linq.Expressions;
+using System.Linq.Expressions;
using System.Text.Json;
using Ardalis.GuardClauses;
using BuildingBlocks.Core.Event;
@@ -145,7 +145,8 @@ private async Task ProcessOutboxAsync(PersistMessage message, Cancellation
await _publishEndpoint.Publish(data, context =>
{
- foreach (var header in messageEnvelope.Headers) context.Headers.Set(header.Key, header.Value);
+ foreach (var header in messageEnvelope.Headers)
+ context.Headers.Set(header.Key, header.Value);
}, cancellationToken);
_logger.LogInformation(
diff --git a/src/BuildingBlocks/Polly/Extensions.cs b/src/BuildingBlocks/Polly/Extensions.cs
index 3c048e76..d6cf527d 100644
--- a/src/BuildingBlocks/Polly/Extensions.cs
+++ b/src/BuildingBlocks/Polly/Extensions.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Polly;
+namespace BuildingBlocks.Polly;
using global::Polly;
using Serilog;
diff --git a/src/BuildingBlocks/Polly/GrpcCircuitBreaker.cs b/src/BuildingBlocks/Polly/GrpcCircuitBreaker.cs
index ea8941cb..98d80767 100644
--- a/src/BuildingBlocks/Polly/GrpcCircuitBreaker.cs
+++ b/src/BuildingBlocks/Polly/GrpcCircuitBreaker.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Polly;
+namespace BuildingBlocks.Polly;
using System.Net;
using Ardalis.GuardClauses;
diff --git a/src/BuildingBlocks/Polly/GrpcRetry.cs b/src/BuildingBlocks/Polly/GrpcRetry.cs
index 3c84cbf8..4128c4a2 100644
--- a/src/BuildingBlocks/Polly/GrpcRetry.cs
+++ b/src/BuildingBlocks/Polly/GrpcRetry.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Polly;
+namespace BuildingBlocks.Polly;
using System.Net;
using Ardalis.GuardClauses;
diff --git a/src/BuildingBlocks/Polly/HttpClientCircuitBreaker.cs b/src/BuildingBlocks/Polly/HttpClientCircuitBreaker.cs
index 699a22ac..24f1e21e 100644
--- a/src/BuildingBlocks/Polly/HttpClientCircuitBreaker.cs
+++ b/src/BuildingBlocks/Polly/HttpClientCircuitBreaker.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Polly;
+namespace BuildingBlocks.Polly;
using System.Net;
using Ardalis.GuardClauses;
diff --git a/src/BuildingBlocks/Polly/HttpClientRetry.cs b/src/BuildingBlocks/Polly/HttpClientRetry.cs
index cfcd1eb8..3735d50b 100644
--- a/src/BuildingBlocks/Polly/HttpClientRetry.cs
+++ b/src/BuildingBlocks/Polly/HttpClientRetry.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Polly;
+namespace BuildingBlocks.Polly;
using System.Net;
using Ardalis.GuardClauses;
diff --git a/src/BuildingBlocks/Polly/PolicyOptions.cs b/src/BuildingBlocks/Polly/PolicyOptions.cs
index 1b18530b..a16be259 100644
--- a/src/BuildingBlocks/Polly/PolicyOptions.cs
+++ b/src/BuildingBlocks/Polly/PolicyOptions.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Polly;
+namespace BuildingBlocks.Polly;
public class PolicyOptions
{
diff --git a/src/BuildingBlocks/ProblemDetails/Extensions.cs b/src/BuildingBlocks/ProblemDetails/Extensions.cs
index 870b2b29..382b1d91 100644
--- a/src/BuildingBlocks/ProblemDetails/Extensions.cs
+++ b/src/BuildingBlocks/ProblemDetails/Extensions.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.ProblemDetails;
+namespace BuildingBlocks.ProblemDetails;
using Exception;
using Grpc.Core;
diff --git a/src/BuildingBlocks/Swagger/ConfigureSwaggerOptions.cs b/src/BuildingBlocks/Swagger/ConfigureSwaggerOptions.cs
index ce67f173..cee88423 100644
--- a/src/BuildingBlocks/Swagger/ConfigureSwaggerOptions.cs
+++ b/src/BuildingBlocks/Swagger/ConfigureSwaggerOptions.cs
@@ -1,4 +1,4 @@
-using System.Text;
+using System.Text;
using Asp.Versioning;
using Asp.Versioning.ApiExplorer;
using Microsoft.Extensions.DependencyInjection;
@@ -42,8 +42,8 @@ private OpenApiInfo CreateInfoForApiVersion(ApiVersionDescription description)
Version = description.ApiVersion.ToString(),
Title = _options?.Title ?? "APIs",
Description = "An application with Swagger, Swashbuckle, and API versioning.",
- Contact = new OpenApiContact {Name = "", Email = ""},
- License = new OpenApiLicense {Name = "MIT", Url = new Uri("https://opensource.org/licenses/MIT")}
+ Contact = new OpenApiContact { Name = "", Email = "" },
+ License = new OpenApiLicense { Name = "MIT", Url = new Uri("https://opensource.org/licenses/MIT") }
};
if (description.IsDeprecated)
diff --git a/src/BuildingBlocks/Swagger/ServiceCollectionExtensions.cs b/src/BuildingBlocks/Swagger/ServiceCollectionExtensions.cs
index 6452ebb1..44f3b8aa 100644
--- a/src/BuildingBlocks/Swagger/ServiceCollectionExtensions.cs
+++ b/src/BuildingBlocks/Swagger/ServiceCollectionExtensions.cs
@@ -1,4 +1,4 @@
-using System.Reflection;
+using System.Reflection;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
@@ -33,7 +33,8 @@ public static IServiceCollection AddCustomSwagger(this IServiceCollection servic
{
var xmlFile = XmlCommentsFilePath(assembly);
- if (File.Exists(xmlFile)) options.IncludeXmlComments(xmlFile);
+ if (File.Exists(xmlFile))
+ options.IncludeXmlComments(xmlFile);
}
options.AddEnumsWithValuesFixFilters();
diff --git a/src/BuildingBlocks/Swagger/SwaggerDefaultValues.cs b/src/BuildingBlocks/Swagger/SwaggerDefaultValues.cs
index c1158825..42cbaefb 100644
--- a/src/BuildingBlocks/Swagger/SwaggerDefaultValues.cs
+++ b/src/BuildingBlocks/Swagger/SwaggerDefaultValues.cs
@@ -1,4 +1,4 @@
-using System.Linq;
+using System.Linq;
using Humanizer;
using Microsoft.AspNetCore.Mvc.ApiExplorer;
using Microsoft.OpenApi.Models;
@@ -59,7 +59,7 @@ public void Apply(OpenApiOperation operation, OperationFilterContext context)
{
// REF: https://github.com/Microsoft/aspnet-api-versioning/issues/429#issuecomment-605402330
var json = JsonConvert.SerializeObject(description.DefaultValue, description.ModelMetadata
- .ModelType, new JsonSerializerSettings {ReferenceLoopHandling = ReferenceLoopHandling.Ignore});
+ .ModelType, new JsonSerializerSettings { ReferenceLoopHandling = ReferenceLoopHandling.Ignore });
parameter.Schema.Default = OpenApiAnyFactory.CreateFromJson(json);
}
diff --git a/src/BuildingBlocks/Swagger/SwaggerOptions.cs b/src/BuildingBlocks/Swagger/SwaggerOptions.cs
index c385995d..82edaf86 100644
--- a/src/BuildingBlocks/Swagger/SwaggerOptions.cs
+++ b/src/BuildingBlocks/Swagger/SwaggerOptions.cs
@@ -6,4 +6,4 @@ public class SwaggerOptions
public string Name { get; set; }
public string Version { get; set; }
}
-}
\ No newline at end of file
+}
diff --git a/src/BuildingBlocks/TestBase/TestBase.cs b/src/BuildingBlocks/TestBase/TestBase.cs
index 0e87026e..cfc33dbe 100644
--- a/src/BuildingBlocks/TestBase/TestBase.cs
+++ b/src/BuildingBlocks/TestBase/TestBase.cs
@@ -1,4 +1,6 @@
-using Ardalis.GuardClauses;
+using System.Net;
+using System.Security.Claims;
+using Ardalis.GuardClauses;
using BuildingBlocks.Core.Event;
using BuildingBlocks.Core.Model;
using BuildingBlocks.EFCore;
@@ -20,12 +22,10 @@
using NSubstitute;
using Respawn;
using Serilog;
+using WebMotions.Fake.Authentication.JwtBearer;
using Xunit;
using Xunit.Abstractions;
using ILogger = Serilog.ILogger;
-using System.Net;
-using System.Security.Claims;
-using WebMotions.Fake.Authentication.JwtBearer;
namespace BuildingBlocks.TestBase;
diff --git a/src/BuildingBlocks/TestBase/TestContainers.cs b/src/BuildingBlocks/TestBase/TestContainers.cs
index 2fdafb82..462b9126 100644
--- a/src/BuildingBlocks/TestBase/TestContainers.cs
+++ b/src/BuildingBlocks/TestBase/TestContainers.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.TestBase;
+namespace BuildingBlocks.TestBase;
using Testcontainers.EventStoreDb;
using Testcontainers.MongoDb;
diff --git a/src/BuildingBlocks/Utils/NoSynchronizationContextScope.cs b/src/BuildingBlocks/Utils/NoSynchronizationContextScope.cs
index 5742d0b9..6bb4e592 100644
--- a/src/BuildingBlocks/Utils/NoSynchronizationContextScope.cs
+++ b/src/BuildingBlocks/Utils/NoSynchronizationContextScope.cs
@@ -1,4 +1,4 @@
-namespace BuildingBlocks.Utils;
+namespace BuildingBlocks.Utils;
public static class NoSynchronizationContextScope
{
@@ -9,7 +9,7 @@ public static Disposable Enter()
return new Disposable(context);
}
- public struct Disposable: IDisposable
+ public struct Disposable : IDisposable
{
private readonly SynchronizationContext? synchronizationContext;
@@ -21,4 +21,4 @@ public Disposable(SynchronizationContext? synchronizationContext)
public void Dispose() =>
SynchronizationContext.SetSynchronizationContext(synchronizationContext);
}
-}
\ No newline at end of file
+}
diff --git a/src/BuildingBlocks/Utils/ServiceLocator.cs b/src/BuildingBlocks/Utils/ServiceLocator.cs
index c8d3ce8e..4ab16119 100644
--- a/src/BuildingBlocks/Utils/ServiceLocator.cs
+++ b/src/BuildingBlocks/Utils/ServiceLocator.cs
@@ -1,4 +1,4 @@
-using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.DependencyInjection;
namespace BuildingBlocks.Utils;
diff --git a/src/BuildingBlocks/Validation/ValidationError.cs b/src/BuildingBlocks/Validation/ValidationError.cs
index 1620ed46..ab78b810 100644
--- a/src/BuildingBlocks/Validation/ValidationError.cs
+++ b/src/BuildingBlocks/Validation/ValidationError.cs
@@ -12,4 +12,4 @@ public ValidationError(string field, string message)
Message = message;
}
}
-}
\ No newline at end of file
+}
diff --git a/src/BuildingBlocks/Web/ApiVersioningExtensions.cs b/src/BuildingBlocks/Web/ApiVersioningExtensions.cs
index 7449c8ef..c7c899a4 100644
--- a/src/BuildingBlocks/Web/ApiVersioningExtensions.cs
+++ b/src/BuildingBlocks/Web/ApiVersioningExtensions.cs
@@ -1,4 +1,4 @@
-using Asp.Versioning;
+using Asp.Versioning;
using Microsoft.Extensions.DependencyInjection;
namespace BuildingBlocks.Web;
diff --git a/src/BuildingBlocks/Web/BaseController.cs b/src/BuildingBlocks/Web/BaseController.cs
index 8f7dc5b6..24479788 100644
--- a/src/BuildingBlocks/Web/BaseController.cs
+++ b/src/BuildingBlocks/Web/BaseController.cs
@@ -1,4 +1,4 @@
-using Asp.Versioning;
+using Asp.Versioning;
using MediatR;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
diff --git a/src/BuildingBlocks/Web/ConfigurationHelper.cs b/src/BuildingBlocks/Web/ConfigurationHelper.cs
index 87480fc9..240139b5 100644
--- a/src/BuildingBlocks/Web/ConfigurationHelper.cs
+++ b/src/BuildingBlocks/Web/ConfigurationHelper.cs
@@ -1,4 +1,4 @@
-using Microsoft.Extensions.Configuration;
+using Microsoft.Extensions.Configuration;
namespace BuildingBlocks.Web
{
diff --git a/src/BuildingBlocks/Web/CurrentUserProvider.cs b/src/BuildingBlocks/Web/CurrentUserProvider.cs
index 0796c16d..e0f910dc 100644
--- a/src/BuildingBlocks/Web/CurrentUserProvider.cs
+++ b/src/BuildingBlocks/Web/CurrentUserProvider.cs
@@ -1,4 +1,4 @@
-using System.Security.Claims;
+using System.Security.Claims;
using Microsoft.AspNetCore.Http;
namespace BuildingBlocks.Web;
diff --git a/src/BuildingBlocks/Web/EndpointConfig.cs b/src/BuildingBlocks/Web/EndpointConfig.cs
index 43afbc76..fa517b70 100644
--- a/src/BuildingBlocks/Web/EndpointConfig.cs
+++ b/src/BuildingBlocks/Web/EndpointConfig.cs
@@ -1,4 +1,4 @@
-using Asp.Versioning.Builder;
+using Asp.Versioning.Builder;
namespace BuildingBlocks.Web;
diff --git a/src/BuildingBlocks/Web/IMinimalEndpoint.cs b/src/BuildingBlocks/Web/IMinimalEndpoint.cs
index 7b443c52..ef2a6d9d 100644
--- a/src/BuildingBlocks/Web/IMinimalEndpoint.cs
+++ b/src/BuildingBlocks/Web/IMinimalEndpoint.cs
@@ -1,4 +1,4 @@
-using Microsoft.AspNetCore.Routing;
+using Microsoft.AspNetCore.Routing;
namespace BuildingBlocks.Web;
diff --git a/src/BuildingBlocks/Web/MinimalApiExtensions.cs b/src/BuildingBlocks/Web/MinimalApiExtensions.cs
index cf0417ae..da37b9c2 100644
--- a/src/BuildingBlocks/Web/MinimalApiExtensions.cs
+++ b/src/BuildingBlocks/Web/MinimalApiExtensions.cs
@@ -1,4 +1,4 @@
-using System.Reflection;
+using System.Reflection;
using BuildingBlocks.Utils;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
diff --git a/src/BuildingBlocks/Web/ServiceCollectionExtensions.cs b/src/BuildingBlocks/Web/ServiceCollectionExtensions.cs
index 680962c3..2d81bf1b 100644
--- a/src/BuildingBlocks/Web/ServiceCollectionExtensions.cs
+++ b/src/BuildingBlocks/Web/ServiceCollectionExtensions.cs
@@ -1,4 +1,4 @@
-using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.DependencyInjection;
using NSubstitute;
namespace BuildingBlocks.Web;
diff --git a/src/BuildingBlocks/Web/ServiceProviderExtensions.cs b/src/BuildingBlocks/Web/ServiceProviderExtensions.cs
index 1ab0d8bf..492facfa 100644
--- a/src/BuildingBlocks/Web/ServiceProviderExtensions.cs
+++ b/src/BuildingBlocks/Web/ServiceProviderExtensions.cs
@@ -1,4 +1,4 @@
-using Microsoft.Extensions.Hosting;
+using Microsoft.Extensions.Hosting;
namespace BuildingBlocks.Web;
diff --git a/src/Services/Booking/src/Booking.Api/Booking.Api.csproj b/src/Services/Booking/src/Booking.Api/Booking.Api.csproj
index fb055204..1929b17e 100644
--- a/src/Services/Booking/src/Booking.Api/Booking.Api.csproj
+++ b/src/Services/Booking/src/Booking.Api/Booking.Api.csproj
@@ -1,11 +1,5 @@
-
- net8.0
- enable
- enable
-
-
diff --git a/src/Services/Booking/src/Booking.Api/Program.cs b/src/Services/Booking/src/Booking.Api/Program.cs
index 514f0631..550e52f1 100644
--- a/src/Services/Booking/src/Booking.Api/Program.cs
+++ b/src/Services/Booking/src/Booking.Api/Program.cs
@@ -12,7 +12,7 @@
options.ValidateOnBuild = true;
});
-builder.AddMinimalEndpoints(assemblies:typeof(BookingRoot).Assembly);
+builder.AddMinimalEndpoints(assemblies: typeof(BookingRoot).Assembly);
builder.AddInfrastructure();
var app = builder.Build();
diff --git a/src/Services/Booking/src/Booking/Booking.csproj b/src/Services/Booking/src/Booking/Booking.csproj
index 31f879f4..d1d9d8ed 100644
--- a/src/Services/Booking/src/Booking/Booking.csproj
+++ b/src/Services/Booking/src/Booking/Booking.csproj
@@ -1,21 +1,15 @@
-
-
- net8.0
- enable
- enable
-
-
+
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidAircraftIdException.cs b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidAircraftIdException.cs
index af2d3b0a..e56f7201 100644
--- a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidAircraftIdException.cs
+++ b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidAircraftIdException.cs
@@ -1,4 +1,4 @@
-namespace Booking.Booking.Exceptions;
+namespace Booking.Booking.Exceptions;
using BuildingBlocks.Exception;
diff --git a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidArriveAirportIdException.cs b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidArriveAirportIdException.cs
index 44c9d8d2..33ac6807 100644
--- a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidArriveAirportIdException.cs
+++ b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidArriveAirportIdException.cs
@@ -1,4 +1,4 @@
-namespace Booking.Booking.Exceptions;
+namespace Booking.Booking.Exceptions;
using BuildingBlocks.Exception;
diff --git a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidDepartureAirportIdException.cs b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidDepartureAirportIdException.cs
index 07ba5855..47f0d561 100644
--- a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidDepartureAirportIdException.cs
+++ b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidDepartureAirportIdException.cs
@@ -1,4 +1,4 @@
-namespace Booking.Booking.Exceptions;
+namespace Booking.Booking.Exceptions;
using BuildingBlocks.Exception;
diff --git a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidFlightDateException.cs b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidFlightDateException.cs
index b1c80e10..8b4fd48f 100644
--- a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidFlightDateException.cs
+++ b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidFlightDateException.cs
@@ -1,4 +1,4 @@
-namespace Booking.Booking.Exceptions;
+namespace Booking.Booking.Exceptions;
using BuildingBlocks.Exception;
diff --git a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidFlightNumberException.cs b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidFlightNumberException.cs
index b5000e15..146a0018 100644
--- a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidFlightNumberException.cs
+++ b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidFlightNumberException.cs
@@ -1,4 +1,4 @@
-namespace Booking.Booking.Exceptions;
+namespace Booking.Booking.Exceptions;
using BuildingBlocks.Exception;
public class InvalidFlightNumberException : BadRequestException
diff --git a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidPassengerNameException.cs b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidPassengerNameException.cs
index 238317ba..9ff87eb4 100644
--- a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidPassengerNameException.cs
+++ b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidPassengerNameException.cs
@@ -1,4 +1,4 @@
-namespace Booking.Booking.Exceptions;
+namespace Booking.Booking.Exceptions;
using BuildingBlocks.Exception;
diff --git a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidPriceException.cs b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidPriceException.cs
index eac700a2..ece62493 100644
--- a/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidPriceException.cs
+++ b/src/Services/Booking/src/Booking/Booking/Exceptions/InvalidPriceException.cs
@@ -1,4 +1,4 @@
-namespace Booking.Booking.Exceptions;
+namespace Booking.Booking.Exceptions;
using BuildingBlocks.Exception;
diff --git a/src/Services/Booking/src/Booking/Booking/Exceptions/SeatNumberException.cs b/src/Services/Booking/src/Booking/Booking/Exceptions/SeatNumberException.cs
index 9b6be643..19678d76 100644
--- a/src/Services/Booking/src/Booking/Booking/Exceptions/SeatNumberException.cs
+++ b/src/Services/Booking/src/Booking/Booking/Exceptions/SeatNumberException.cs
@@ -1,4 +1,4 @@
-namespace Booking.Booking.Exceptions;
+namespace Booking.Booking.Exceptions;
using BuildingBlocks.Exception;
diff --git a/src/Services/Booking/src/Booking/Booking/Features/CreatingBook/V1/CreateBooking.cs b/src/Services/Booking/src/Booking/Booking/Features/CreatingBook/V1/CreateBooking.cs
index 7ae1a3d0..bde40c0a 100644
--- a/src/Services/Booking/src/Booking/Booking/Features/CreatingBook/V1/CreateBooking.cs
+++ b/src/Services/Booking/src/Booking/Booking/Features/CreatingBook/V1/CreateBooking.cs
@@ -133,7 +133,8 @@ public async Task Handle(CreateBooking command, Cancellatio
await _flightGrpcServiceClient.ReserveSeatAsync(new ReserveSeatRequest
{
- FlightId = flight.FlightDto.Id, SeatNumber = emptySeat?.SeatNumber
+ FlightId = flight.FlightDto.Id,
+ SeatNumber = emptySeat?.SeatNumber
}, cancellationToken: cancellationToken);
var result = await _eventStoreDbRepository.Add(
diff --git a/src/Services/Booking/src/Booking/Booking/Models/BookingReadModel.cs b/src/Services/Booking/src/Booking/Booking/Models/BookingReadModel.cs
index 9a0a32be..57d20185 100644
--- a/src/Services/Booking/src/Booking/Booking/Models/BookingReadModel.cs
+++ b/src/Services/Booking/src/Booking/Booking/Models/BookingReadModel.cs
@@ -1,4 +1,4 @@
-namespace Booking.Booking.Models;
+namespace Booking.Booking.Models;
using ValueObjects;
diff --git a/src/Services/Booking/src/Booking/Booking/ValueObjects/Trip.cs b/src/Services/Booking/src/Booking/Booking/ValueObjects/Trip.cs
index 7c2be900..fb1b0d42 100644
--- a/src/Services/Booking/src/Booking/Booking/ValueObjects/Trip.cs
+++ b/src/Services/Booking/src/Booking/Booking/ValueObjects/Trip.cs
@@ -54,7 +54,8 @@ public static Trip Of(string flightNumber, Guid aircraftId, Guid departureAirpor
throw new InvalidFlightDateException(flightDate);
}
- if(price < 0){
+ if (price < 0)
+ {
throw new InvalidPriceException(price);
}
diff --git a/src/Services/Booking/src/Booking/Data/BookingReadDbContext.cs b/src/Services/Booking/src/Booking/Data/BookingReadDbContext.cs
index e2d48f51..e35b2562 100644
--- a/src/Services/Booking/src/Booking/Data/BookingReadDbContext.cs
+++ b/src/Services/Booking/src/Booking/Data/BookingReadDbContext.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.Mongo;
+using BuildingBlocks.Mongo;
using Humanizer;
using Microsoft.Extensions.Options;
using MongoDB.Driver;
diff --git a/src/Services/Booking/src/Booking/Extensions/Infrastructure/GrpcClientExtensions.cs b/src/Services/Booking/src/Booking/Extensions/Infrastructure/GrpcClientExtensions.cs
index d2fc8214..c4ca31cd 100644
--- a/src/Services/Booking/src/Booking/Extensions/Infrastructure/GrpcClientExtensions.cs
+++ b/src/Services/Booking/src/Booking/Extensions/Infrastructure/GrpcClientExtensions.cs
@@ -1,4 +1,4 @@
-using Booking.Configuration;
+using Booking.Configuration;
using BuildingBlocks.Web;
using Flight;
using Microsoft.Extensions.DependencyInjection;
@@ -26,7 +26,8 @@ public static IServiceCollection AddGrpcClients(this IServiceCollection services
o.Address = new Uri(grpcOptions.PassengerAddress);
})
.AddGrpcRetryPolicyHandler()
- .AddGrpcCircuitBreakerPolicyHandler();;
+ .AddGrpcCircuitBreakerPolicyHandler();
+ ;
return services;
}
diff --git a/src/Services/Booking/src/Booking/Extensions/Infrastructure/InfrastructureExtensions.cs b/src/Services/Booking/src/Booking/Extensions/Infrastructure/InfrastructureExtensions.cs
index 9f9f0a55..c3d82f1d 100644
--- a/src/Services/Booking/src/Booking/Extensions/Infrastructure/InfrastructureExtensions.cs
+++ b/src/Services/Booking/src/Booking/Extensions/Infrastructure/InfrastructureExtensions.cs
@@ -1,4 +1,4 @@
-using System.Threading.RateLimiting;
+using System.Threading.RateLimiting;
using Booking.Data;
using BuildingBlocks.Core;
using BuildingBlocks.EventStoreDB;
@@ -53,7 +53,10 @@ public static WebApplicationBuilder AddInfrastructure(this WebApplicationBuilder
partitionKey: httpContext.User.Identity?.Name ?? httpContext.Request.Headers.Host.ToString(),
factory: partition => new FixedWindowRateLimiterOptions
{
- AutoReplenishment = true, PermitLimit = 10, QueueLimit = 0, Window = TimeSpan.FromMinutes(1)
+ AutoReplenishment = true,
+ PermitLimit = 10,
+ QueueLimit = 0,
+ Window = TimeSpan.FromMinutes(1)
}));
});
diff --git a/src/Services/Booking/tests/IntegrationTest/Booking/Features/CreateBookingTests.cs b/src/Services/Booking/tests/IntegrationTest/Booking/Features/CreateBookingTests.cs
index 15aacbf3..ef2dc45a 100644
--- a/src/Services/Booking/tests/IntegrationTest/Booking/Features/CreateBookingTests.cs
+++ b/src/Services/Booking/tests/IntegrationTest/Booking/Features/CreateBookingTests.cs
@@ -1,4 +1,4 @@
-using System.Threading.Tasks;
+using System.Threading.Tasks;
using Booking.Api;
using Booking.Data;
using BuildingBlocks.Contracts.EventBus.Messages;
diff --git a/src/Services/Booking/tests/IntegrationTest/BookingIntegrationTestBase.cs b/src/Services/Booking/tests/IntegrationTest/BookingIntegrationTestBase.cs
index b3100f26..649e482f 100644
--- a/src/Services/Booking/tests/IntegrationTest/BookingIntegrationTestBase.cs
+++ b/src/Services/Booking/tests/IntegrationTest/BookingIntegrationTestBase.cs
@@ -1,4 +1,4 @@
-using Booking.Api;
+using Booking.Api;
using Booking.Data;
using BuildingBlocks.TestBase;
using Xunit;
@@ -6,7 +6,7 @@
namespace Integration.Test;
[Collection(IntegrationTestCollection.Name)]
-public class BookingIntegrationTestBase: TestReadBase
+public class BookingIntegrationTestBase : TestReadBase
{
public BookingIntegrationTestBase(TestReadFixture integrationTestFixture) : base(integrationTestFixture)
{
diff --git a/src/Services/Booking/tests/IntegrationTest/Fakes/FakeCreateBookingCommand.cs b/src/Services/Booking/tests/IntegrationTest/Fakes/FakeCreateBookingCommand.cs
index 288a3839..ff5cb937 100644
--- a/src/Services/Booking/tests/IntegrationTest/Fakes/FakeCreateBookingCommand.cs
+++ b/src/Services/Booking/tests/IntegrationTest/Fakes/FakeCreateBookingCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
namespace Integration.Test.Fakes;
diff --git a/src/Services/Booking/tests/IntegrationTest/Fakes/FakeFlightResponse.cs b/src/Services/Booking/tests/IntegrationTest/Fakes/FakeFlightResponse.cs
index 9a443309..03588e94 100644
--- a/src/Services/Booking/tests/IntegrationTest/Fakes/FakeFlightResponse.cs
+++ b/src/Services/Booking/tests/IntegrationTest/Fakes/FakeFlightResponse.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using AutoBogus;
using Flight;
using Google.Protobuf.WellKnownTypes;
diff --git a/src/Services/Booking/tests/IntegrationTest/Fakes/FakeGetAvailableSeatsResponse.cs b/src/Services/Booking/tests/IntegrationTest/Fakes/FakeGetAvailableSeatsResponse.cs
index 205a45cc..16333cbe 100644
--- a/src/Services/Booking/tests/IntegrationTest/Fakes/FakeGetAvailableSeatsResponse.cs
+++ b/src/Services/Booking/tests/IntegrationTest/Fakes/FakeGetAvailableSeatsResponse.cs
@@ -1,4 +1,4 @@
-using System.Collections.Generic;
+using System.Collections.Generic;
using Flight;
namespace Integration.Test.Fakes;
diff --git a/src/Services/Booking/tests/IntegrationTest/Fakes/FakePassengerResponse.cs b/src/Services/Booking/tests/IntegrationTest/Fakes/FakePassengerResponse.cs
index 31cbd980..c3b2998d 100644
--- a/src/Services/Booking/tests/IntegrationTest/Fakes/FakePassengerResponse.cs
+++ b/src/Services/Booking/tests/IntegrationTest/Fakes/FakePassengerResponse.cs
@@ -1,4 +1,4 @@
-namespace Integration.Test.Fakes;
+namespace Integration.Test.Fakes;
using MassTransit;
using Passenger;
diff --git a/src/Services/Booking/tests/IntegrationTest/Fakes/FakeReserveSeatResponse.cs b/src/Services/Booking/tests/IntegrationTest/Fakes/FakeReserveSeatResponse.cs
index ea69f5c1..d5e4a1ce 100644
--- a/src/Services/Booking/tests/IntegrationTest/Fakes/FakeReserveSeatResponse.cs
+++ b/src/Services/Booking/tests/IntegrationTest/Fakes/FakeReserveSeatResponse.cs
@@ -1,4 +1,4 @@
-namespace Integration.Test.Fakes;
+namespace Integration.Test.Fakes;
using Flight;
using MassTransit;
diff --git a/src/Services/Booking/tests/IntegrationTest/Integration.Test.csproj b/src/Services/Booking/tests/IntegrationTest/Integration.Test.csproj
index 7fe9c29b..29cb4ccc 100644
--- a/src/Services/Booking/tests/IntegrationTest/Integration.Test.csproj
+++ b/src/Services/Booking/tests/IntegrationTest/Integration.Test.csproj
@@ -1,11 +1,5 @@
-
- net8.0
- false
- enable
-
-
PreserveNewest
@@ -13,7 +7,7 @@
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Services/Flight/src/Flight.Api/Flight.Api.csproj b/src/Services/Flight/src/Flight.Api/Flight.Api.csproj
index 6ad973f3..b21f7833 100644
--- a/src/Services/Flight/src/Flight.Api/Flight.Api.csproj
+++ b/src/Services/Flight/src/Flight.Api/Flight.Api.csproj
@@ -1,11 +1,5 @@
-
- net8.0
- enable
- enable
-
-
diff --git a/src/Services/Flight/src/Flight.Api/Program.cs b/src/Services/Flight/src/Flight.Api/Program.cs
index ec8cebd5..d1c71d4f 100644
--- a/src/Services/Flight/src/Flight.Api/Program.cs
+++ b/src/Services/Flight/src/Flight.Api/Program.cs
@@ -12,7 +12,7 @@
options.ValidateOnBuild = true;
});
-builder.AddMinimalEndpoints(assemblies:typeof(FlightRoot).Assembly);
+builder.AddMinimalEndpoints(assemblies: typeof(FlightRoot).Assembly);
builder.AddInfrastructure();
var app = builder.Build();
diff --git a/src/Services/Flight/src/Flight/Aircrafts/ValueObjects/ManufacturingYear.cs b/src/Services/Flight/src/Flight/Aircrafts/ValueObjects/ManufacturingYear.cs
index de903112..3ab80a58 100644
--- a/src/Services/Flight/src/Flight/Aircrafts/ValueObjects/ManufacturingYear.cs
+++ b/src/Services/Flight/src/Flight/Aircrafts/ValueObjects/ManufacturingYear.cs
@@ -5,7 +5,7 @@ namespace Flight.Aircrafts.ValueObjects;
public record ManufacturingYear
{
public int Value { get; }
-
+
private ManufacturingYear(int value)
{
Value = value;
diff --git a/src/Services/Flight/src/Flight/Airports/Features/CreatingAirport/V1/CreateAirportMongo.cs b/src/Services/Flight/src/Flight/Airports/Features/CreatingAirport/V1/CreateAirportMongo.cs
index f437e3ed..ad1df5c6 100644
--- a/src/Services/Flight/src/Flight/Airports/Features/CreatingAirport/V1/CreateAirportMongo.cs
+++ b/src/Services/Flight/src/Flight/Airports/Features/CreatingAirport/V1/CreateAirportMongo.cs
@@ -1,4 +1,4 @@
-namespace Flight.Airports.Features.CreatingAirport.V1;
+namespace Flight.Airports.Features.CreatingAirport.V1;
using System;
using System.Threading;
@@ -6,11 +6,11 @@
using Ardalis.GuardClauses;
using BuildingBlocks.Core.CQRS;
using BuildingBlocks.Core.Event;
-using Exceptions;
-using Models;
using Data;
+using Exceptions;
using MapsterMapper;
using MediatR;
+using Models;
using MongoDB.Driver;
using MongoDB.Driver.Linq;
diff --git a/src/Services/Flight/src/Flight/Airports/Models/AirportReadModel.cs b/src/Services/Flight/src/Flight/Airports/Models/AirportReadModel.cs
index 53565628..14d5a32b 100644
--- a/src/Services/Flight/src/Flight/Airports/Models/AirportReadModel.cs
+++ b/src/Services/Flight/src/Flight/Airports/Models/AirportReadModel.cs
@@ -1,4 +1,4 @@
-namespace Flight.Airports.Models;
+namespace Flight.Airports.Models;
using System;
diff --git a/src/Services/Flight/src/Flight/Data/Migrations/20230611230948_initial.cs b/src/Services/Flight/src/Flight/Data/Migrations/20230611230948_initial.cs
index 2c1d574e..630f49f8 100644
--- a/src/Services/Flight/src/Flight/Data/Migrations/20230611230948_initial.cs
+++ b/src/Services/Flight/src/Flight/Data/Migrations/20230611230948_initial.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
diff --git a/src/Services/Flight/src/Flight/Extensions/Infrastructure/InfrastructureExtensions.cs b/src/Services/Flight/src/Flight/Extensions/Infrastructure/InfrastructureExtensions.cs
index 3ad8409a..77f040e6 100644
--- a/src/Services/Flight/src/Flight/Extensions/Infrastructure/InfrastructureExtensions.cs
+++ b/src/Services/Flight/src/Flight/Extensions/Infrastructure/InfrastructureExtensions.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Threading.RateLimiting;
using BuildingBlocks.Core;
using BuildingBlocks.EFCore;
@@ -57,7 +57,10 @@ public static WebApplicationBuilder AddInfrastructure(this WebApplicationBuilder
partitionKey: httpContext.User.Identity?.Name ?? httpContext.Request.Headers.Host.ToString(),
factory: partition => new FixedWindowRateLimiterOptions
{
- AutoReplenishment = true, PermitLimit = 10, QueueLimit = 0, Window = TimeSpan.FromMinutes(1)
+ AutoReplenishment = true,
+ PermitLimit = 10,
+ QueueLimit = 0,
+ Window = TimeSpan.FromMinutes(1)
}));
});
diff --git a/src/Services/Flight/src/Flight/Flight.csproj b/src/Services/Flight/src/Flight/Flight.csproj
index 042b2223..bc49ff99 100644
--- a/src/Services/Flight/src/Flight/Flight.csproj
+++ b/src/Services/Flight/src/Flight/Flight.csproj
@@ -1,18 +1,13 @@
-
-
-
- net8.0
- enable
-
+
-
-
-
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Services/Flight/src/Flight/Flights/Features/DeletingFlight/V1/DeleteFlightMongo.cs b/src/Services/Flight/src/Flight/Flights/Features/DeletingFlight/V1/DeleteFlightMongo.cs
index b63d1c46..caed0c01 100644
--- a/src/Services/Flight/src/Flight/Flights/Features/DeletingFlight/V1/DeleteFlightMongo.cs
+++ b/src/Services/Flight/src/Flight/Flights/Features/DeletingFlight/V1/DeleteFlightMongo.cs
@@ -1,4 +1,4 @@
-namespace Flight.Flights.Features.DeletingFlight.V1;
+namespace Flight.Flights.Features.DeletingFlight.V1;
using System;
using System.Threading;
diff --git a/src/Services/Flight/src/Flight/Flights/Features/UpdatingFlight/V1/UpdateFlightMongo.cs b/src/Services/Flight/src/Flight/Flights/Features/UpdatingFlight/V1/UpdateFlightMongo.cs
index 35804af2..523bfe49 100644
--- a/src/Services/Flight/src/Flight/Flights/Features/UpdatingFlight/V1/UpdateFlightMongo.cs
+++ b/src/Services/Flight/src/Flight/Flights/Features/UpdatingFlight/V1/UpdateFlightMongo.cs
@@ -1,4 +1,4 @@
-namespace Flight.Flights.Features.UpdatingFlight.V1;
+namespace Flight.Flights.Features.UpdatingFlight.V1;
using System;
using System.Threading;
diff --git a/src/Services/Flight/src/Flight/GrpcServer/Services/FlightGrpcServices.cs b/src/Services/Flight/src/Flight/GrpcServer/Services/FlightGrpcServices.cs
index 9a82947c..f55dc1e9 100644
--- a/src/Services/Flight/src/Flight/GrpcServer/Services/FlightGrpcServices.cs
+++ b/src/Services/Flight/src/Flight/GrpcServer/Services/FlightGrpcServices.cs
@@ -1,4 +1,4 @@
-using System.Threading.Tasks;
+using System.Threading.Tasks;
using Grpc.Core;
using Mapster;
using MediatR;
diff --git a/src/Services/Flight/src/Flight/Seats/Features/CreatingSeat/V1/CreateSeat.cs b/src/Services/Flight/src/Flight/Seats/Features/CreatingSeat/V1/CreateSeat.cs
index f8f5e976..1ab80ffe 100644
--- a/src/Services/Flight/src/Flight/Seats/Features/CreatingSeat/V1/CreateSeat.cs
+++ b/src/Services/Flight/src/Flight/Seats/Features/CreatingSeat/V1/CreateSeat.cs
@@ -7,10 +7,9 @@ namespace Flight.Seats.Features.CreatingSeat.V1;
using BuildingBlocks.Core.CQRS;
using BuildingBlocks.Core.Event;
using BuildingBlocks.Web;
-using Duende.IdentityServer.EntityFramework.Entities;
using Data;
+using Duende.IdentityServer.EntityFramework.Entities;
using Exceptions;
-using Models;
using Flights.ValueObjects;
using FluentValidation;
using Mapster;
@@ -21,6 +20,7 @@ namespace Flight.Seats.Features.CreatingSeat.V1;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Routing;
using Microsoft.EntityFrameworkCore;
+using Models;
using ValueObjects;
public record CreateSeat
diff --git a/src/Services/Flight/src/Flight/Seats/Features/CreatingSeat/V1/CreateSeatMongo.cs b/src/Services/Flight/src/Flight/Seats/Features/CreatingSeat/V1/CreateSeatMongo.cs
index a0f900f7..fedbbfc8 100644
--- a/src/Services/Flight/src/Flight/Seats/Features/CreatingSeat/V1/CreateSeatMongo.cs
+++ b/src/Services/Flight/src/Flight/Seats/Features/CreatingSeat/V1/CreateSeatMongo.cs
@@ -1,4 +1,4 @@
-namespace Flight.Seats.Features.CreatingSeat.V1;
+namespace Flight.Seats.Features.CreatingSeat.V1;
using System;
using System.Threading;
@@ -8,9 +8,9 @@
using BuildingBlocks.Core.Event;
using Data;
using Exceptions;
-using Models;
using MapsterMapper;
using MediatR;
+using Models;
using MongoDB.Driver;
using MongoDB.Driver.Linq;
diff --git a/src/Services/Flight/src/Flight/Seats/Features/ReservingSeat/V1/ReserveSeatMongo.cs b/src/Services/Flight/src/Flight/Seats/Features/ReservingSeat/V1/ReserveSeatMongo.cs
index 775724d5..a99e4386 100644
--- a/src/Services/Flight/src/Flight/Seats/Features/ReservingSeat/V1/ReserveSeatMongo.cs
+++ b/src/Services/Flight/src/Flight/Seats/Features/ReservingSeat/V1/ReserveSeatMongo.cs
@@ -1,4 +1,4 @@
-namespace Flight.Seats.Features.ReservingSeat.V1;
+namespace Flight.Seats.Features.ReservingSeat.V1;
using System;
using System.Threading;
diff --git a/src/Services/Flight/src/Flight/Seats/Models/SeatReadModel.cs b/src/Services/Flight/src/Flight/Seats/Models/SeatReadModel.cs
index 696827cb..536b62f9 100644
--- a/src/Services/Flight/src/Flight/Seats/Models/SeatReadModel.cs
+++ b/src/Services/Flight/src/Flight/Seats/Models/SeatReadModel.cs
@@ -1,4 +1,4 @@
-namespace Flight.Seats.Models;
+namespace Flight.Seats.Models;
using System;
diff --git a/src/Services/Flight/tests/EndToEndTest/EndToEnd.Test.csproj b/src/Services/Flight/tests/EndToEndTest/EndToEnd.Test.csproj
index 09722969..6e00b08a 100644
--- a/src/Services/Flight/tests/EndToEndTest/EndToEnd.Test.csproj
+++ b/src/Services/Flight/tests/EndToEndTest/EndToEnd.Test.csproj
@@ -1,12 +1,5 @@
-
- net8.0
- enable
- enable
- false
-
-
PreserveNewest
@@ -14,7 +7,7 @@
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Services/Flight/tests/EndToEndTest/Fakes/FakeCreateFlightCommand.cs b/src/Services/Flight/tests/EndToEndTest/Fakes/FakeCreateFlightCommand.cs
index e6938998..83df003e 100644
--- a/src/Services/Flight/tests/EndToEndTest/Fakes/FakeCreateFlightCommand.cs
+++ b/src/Services/Flight/tests/EndToEndTest/Fakes/FakeCreateFlightCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
using Flight.Flights.Enums;
namespace EndToEnd.Test.Fakes;
@@ -13,7 +13,7 @@ public FakeCreateFlightCommand()
{
RuleFor(r => r.Id, _ => NewId.NextGuid());
RuleFor(r => r.FlightNumber, r => "12FF");
- RuleFor(r => r.DepartureAirportId, _ => InitialData.Airports.First().Id);
+ RuleFor(r => r.DepartureAirportId, _ => InitialData.Airports.First().Id);
RuleFor(r => r.ArriveAirportId, _ => InitialData.Airports.Last().Id);
RuleFor(r => r.Status, _ => FlightStatus.Flying);
RuleFor(r => r.AircraftId, _ => InitialData.Aircrafts.First().Id);
diff --git a/src/Services/Flight/tests/EndToEndTest/Fakes/FakeCreateFlightMongoCommand.cs b/src/Services/Flight/tests/EndToEndTest/Fakes/FakeCreateFlightMongoCommand.cs
index 69beec3b..603c4552 100644
--- a/src/Services/Flight/tests/EndToEndTest/Fakes/FakeCreateFlightMongoCommand.cs
+++ b/src/Services/Flight/tests/EndToEndTest/Fakes/FakeCreateFlightMongoCommand.cs
@@ -1,9 +1,9 @@
-namespace EndToEnd.Test.Fakes;
+namespace EndToEnd.Test.Fakes;
using AutoBogus;
using global::Flight.Data.Seed;
-using global::Flight.Flights.Features.CreatingFlight.V1;
using global::Flight.Flights.Enums;
+using global::Flight.Flights.Features.CreatingFlight.V1;
using MassTransit;
public sealed class FakeCreateFlightMongoCommand : AutoFaker
@@ -12,7 +12,7 @@ public FakeCreateFlightMongoCommand()
{
RuleFor(r => r.Id, _ => NewId.NextGuid());
RuleFor(r => r.FlightNumber, r => "12FF");
- RuleFor(r => r.DepartureAirportId, _ => InitialData.Airports.First().Id);
+ RuleFor(r => r.DepartureAirportId, _ => InitialData.Airports.First().Id);
RuleFor(r => r.ArriveAirportId, _ => InitialData.Airports.Last().Id);
RuleFor(r => r.Status, _ => FlightStatus.Flying);
RuleFor(r => r.AircraftId, _ => InitialData.Aircrafts.First().Id);
diff --git a/src/Services/Flight/tests/EndToEndTest/Flight/Features/CreateFlightTests.cs b/src/Services/Flight/tests/EndToEndTest/Flight/Features/CreateFlightTests.cs
index 16fb2b04..c44f367a 100644
--- a/src/Services/Flight/tests/EndToEndTest/Flight/Features/CreateFlightTests.cs
+++ b/src/Services/Flight/tests/EndToEndTest/Flight/Features/CreateFlightTests.cs
@@ -1,4 +1,4 @@
-using System.Net;
+using System.Net;
using System.Net.Http.Json;
using BuildingBlocks.TestBase;
using EndToEnd.Test.Fakes;
diff --git a/src/Services/Flight/tests/EndToEndTest/Flight/Features/GetFlightByIdTests.cs b/src/Services/Flight/tests/EndToEndTest/Flight/Features/GetFlightByIdTests.cs
index 1f7d4be1..232d7387 100644
--- a/src/Services/Flight/tests/EndToEndTest/Flight/Features/GetFlightByIdTests.cs
+++ b/src/Services/Flight/tests/EndToEndTest/Flight/Features/GetFlightByIdTests.cs
@@ -1,4 +1,4 @@
-using System.Net;
+using System.Net;
using BuildingBlocks.TestBase;
using EndToEnd.Test.Fakes;
using EndToEnd.Test.Routes;
@@ -9,7 +9,7 @@
namespace EndToEnd.Test.Flight.Features;
-public class GetFlightByIdTests: FlightEndToEndTestBase
+public class GetFlightByIdTests : FlightEndToEndTestBase
{
public GetFlightByIdTests(TestFixture integrationTestFixture) : base(integrationTestFixture)
{
diff --git a/src/Services/Flight/tests/EndToEndTest/FlightEndToEndTestBase.cs b/src/Services/Flight/tests/EndToEndTest/FlightEndToEndTestBase.cs
index 45e067f8..35c64002 100644
--- a/src/Services/Flight/tests/EndToEndTest/FlightEndToEndTestBase.cs
+++ b/src/Services/Flight/tests/EndToEndTest/FlightEndToEndTestBase.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.TestBase;
+using BuildingBlocks.TestBase;
using Flight.Api;
using Flight.Data;
using Xunit;
@@ -6,7 +6,7 @@
namespace EndToEnd.Test;
[Collection(EndToEndTestCollection.Name)]
-public class FlightEndToEndTestBase: TestBase
+public class FlightEndToEndTestBase : TestBase
{
public FlightEndToEndTestBase(TestFixture integrationTestFixture) : base(integrationTestFixture)
{
diff --git a/src/Services/Flight/tests/EndToEndTest/Routes/ApiRoutes.cs b/src/Services/Flight/tests/EndToEndTest/Routes/ApiRoutes.cs
index 4bbf8801..0517f297 100644
--- a/src/Services/Flight/tests/EndToEndTest/Routes/ApiRoutes.cs
+++ b/src/Services/Flight/tests/EndToEndTest/Routes/ApiRoutes.cs
@@ -1,4 +1,4 @@
-namespace EndToEnd.Test.Routes;
+namespace EndToEnd.Test.Routes;
public static class ApiRoutes
{
diff --git a/src/Services/Flight/tests/IntegrationTest/Airport/Features/CreateAirportTests.cs b/src/Services/Flight/tests/IntegrationTest/Airport/Features/CreateAirportTests.cs
index 90e4fe6e..fbc913c3 100644
--- a/src/Services/Flight/tests/IntegrationTest/Airport/Features/CreateAirportTests.cs
+++ b/src/Services/Flight/tests/IntegrationTest/Airport/Features/CreateAirportTests.cs
@@ -1,4 +1,4 @@
-using System.Threading.Tasks;
+using System.Threading.Tasks;
using BuildingBlocks.Contracts.EventBus.Messages;
using BuildingBlocks.TestBase;
using Flight.Api;
diff --git a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateAirportCommand.cs b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateAirportCommand.cs
index 9c387b78..2cc7ae2a 100644
--- a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateAirportCommand.cs
+++ b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateAirportCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
namespace Integration.Test.Fakes;
diff --git a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateFlightCommand.cs b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateFlightCommand.cs
index 6655103a..5e2793e3 100644
--- a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateFlightCommand.cs
+++ b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateFlightCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
using Flight.Flights.Enums;
namespace Integration.Test.Fakes;
@@ -17,6 +17,6 @@ public FakeCreateFlightCommand()
RuleFor(r => r.DepartureAirportId, _ => InitialData.Airports.First().Id);
RuleFor(r => r.ArriveAirportId, _ => InitialData.Airports.Last().Id);
RuleFor(r => r.Status, _ => FlightStatus.Flying);
- RuleFor(r => r.AircraftId, _ => InitialData.Aircrafts.First().Id);
+ RuleFor(r => r.AircraftId, _ => InitialData.Aircrafts.First().Id);
}
}
diff --git a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateFlightMongoCommand.cs b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateFlightMongoCommand.cs
index aaae518d..921b8105 100644
--- a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateFlightMongoCommand.cs
+++ b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateFlightMongoCommand.cs
@@ -1,4 +1,4 @@
-namespace Integration.Test.Fakes;
+namespace Integration.Test.Fakes;
using System.Linq;
using AutoBogus;
@@ -13,7 +13,7 @@ public FakeCreateFlightMongoCommand()
{
RuleFor(r => r.Id, _ => NewId.NextGuid());
RuleFor(r => r.FlightNumber, r => "12FF");
- RuleFor(r => r.DepartureAirportId, _ => InitialData.Airports.First().Id);
+ RuleFor(r => r.DepartureAirportId, _ => InitialData.Airports.First().Id);
RuleFor(r => r.ArriveAirportId, _ => InitialData.Airports.Last().Id);
RuleFor(r => r.Status, _ => FlightStatus.Flying);
RuleFor(r => r.AircraftId, _ => InitialData.Aircrafts.First().Id);
diff --git a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateSeatCommand.cs b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateSeatCommand.cs
index 6ce1da0f..1f68428f 100644
--- a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateSeatCommand.cs
+++ b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateSeatCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
using Flight.Seats.Enums;
namespace Integration.Test.Fakes;
diff --git a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateSeatMongoCommand.cs b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateSeatMongoCommand.cs
index 0224d329..441d090a 100644
--- a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateSeatMongoCommand.cs
+++ b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeCreateSeatMongoCommand.cs
@@ -1,4 +1,4 @@
-namespace Integration.Test.Fakes;
+namespace Integration.Test.Fakes;
using System;
using AutoBogus;
diff --git a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeUpdateFlightCommand.cs b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeUpdateFlightCommand.cs
index 28e54a61..e6ca140f 100644
--- a/src/Services/Flight/tests/IntegrationTest/Fakes/FakeUpdateFlightCommand.cs
+++ b/src/Services/Flight/tests/IntegrationTest/Fakes/FakeUpdateFlightCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
namespace Integration.Test.Fakes;
diff --git a/src/Services/Flight/tests/IntegrationTest/Flight/Features/CreateFlightTests.cs b/src/Services/Flight/tests/IntegrationTest/Flight/Features/CreateFlightTests.cs
index a1342107..d7b05761 100644
--- a/src/Services/Flight/tests/IntegrationTest/Flight/Features/CreateFlightTests.cs
+++ b/src/Services/Flight/tests/IntegrationTest/Flight/Features/CreateFlightTests.cs
@@ -1,4 +1,4 @@
-using System.Threading.Tasks;
+using System.Threading.Tasks;
using BuildingBlocks.Contracts.EventBus.Messages;
using BuildingBlocks.TestBase;
using Flight.Api;
diff --git a/src/Services/Flight/tests/IntegrationTest/Flight/Features/GetAvailableFlightsTests.cs b/src/Services/Flight/tests/IntegrationTest/Flight/Features/GetAvailableFlightsTests.cs
index 31aa6a81..5fc24da9 100644
--- a/src/Services/Flight/tests/IntegrationTest/Flight/Features/GetAvailableFlightsTests.cs
+++ b/src/Services/Flight/tests/IntegrationTest/Flight/Features/GetAvailableFlightsTests.cs
@@ -1,4 +1,4 @@
-using System.Linq;
+using System.Linq;
using System.Threading.Tasks;
using BuildingBlocks.TestBase;
using Flight.Api;
diff --git a/src/Services/Flight/tests/IntegrationTest/Flight/Features/GetFlightByIdTests.cs b/src/Services/Flight/tests/IntegrationTest/Flight/Features/GetFlightByIdTests.cs
index c115c55b..c0d1fd88 100644
--- a/src/Services/Flight/tests/IntegrationTest/Flight/Features/GetFlightByIdTests.cs
+++ b/src/Services/Flight/tests/IntegrationTest/Flight/Features/GetFlightByIdTests.cs
@@ -1,4 +1,4 @@
-using System.Threading.Tasks;
+using System.Threading.Tasks;
using BuildingBlocks.TestBase;
using Flight;
using Flight.Api;
@@ -49,7 +49,7 @@ public async Task should_retrive_a_flight_by_id_from_grpc_service()
var flightGrpcClient = new FlightGrpcService.FlightGrpcServiceClient(Fixture.Channel);
// Act
- var response = await flightGrpcClient.GetByIdAsync(new GetByIdRequest {Id = command.Id.ToString()}).ResponseAsync;
+ var response = await flightGrpcClient.GetByIdAsync(new GetByIdRequest { Id = command.Id.ToString() }).ResponseAsync;
// Assert
response?.Should().NotBeNull();
diff --git a/src/Services/Flight/tests/IntegrationTest/FlightIntegrationTestBase.cs b/src/Services/Flight/tests/IntegrationTest/FlightIntegrationTestBase.cs
index af50f332..f6bc1c06 100644
--- a/src/Services/Flight/tests/IntegrationTest/FlightIntegrationTestBase.cs
+++ b/src/Services/Flight/tests/IntegrationTest/FlightIntegrationTestBase.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.TestBase;
+using BuildingBlocks.TestBase;
using Flight.Api;
using Flight.Data;
using Xunit;
@@ -6,7 +6,7 @@
namespace Integration.Test;
[Collection(IntegrationTestCollection.Name)]
-public class FlightIntegrationTestBase: TestBase
+public class FlightIntegrationTestBase : TestBase
{
public FlightIntegrationTestBase(TestFixture integrationTestFixture) : base(integrationTestFixture)
{
diff --git a/src/Services/Flight/tests/IntegrationTest/Integration.Test.csproj b/src/Services/Flight/tests/IntegrationTest/Integration.Test.csproj
index d712577d..6e00b08a 100644
--- a/src/Services/Flight/tests/IntegrationTest/Integration.Test.csproj
+++ b/src/Services/Flight/tests/IntegrationTest/Integration.Test.csproj
@@ -1,11 +1,5 @@
-
- net8.0
- false
- enable
-
-
PreserveNewest
@@ -13,7 +7,7 @@
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Services/Flight/tests/IntegrationTest/Seat/Features/GetAvailableSeatsTests.cs b/src/Services/Flight/tests/IntegrationTest/Seat/Features/GetAvailableSeatsTests.cs
index 881bcdab..c1d80dc2 100644
--- a/src/Services/Flight/tests/IntegrationTest/Seat/Features/GetAvailableSeatsTests.cs
+++ b/src/Services/Flight/tests/IntegrationTest/Seat/Features/GetAvailableSeatsTests.cs
@@ -1,4 +1,4 @@
-using System.Threading.Tasks;
+using System.Threading.Tasks;
using BuildingBlocks.TestBase;
using Flight;
using Flight.Api;
@@ -34,7 +34,7 @@ public async Task should_return_available_seats_from_grpc_service()
var flightGrpcClient = new FlightGrpcService.FlightGrpcServiceClient(Fixture.Channel);
// Act
- var response = await flightGrpcClient.GetAvailableSeatsAsync(new GetAvailableSeatsRequest{FlightId = flightCommand.Id.ToString()});
+ var response = await flightGrpcClient.GetAvailableSeatsAsync(new GetAvailableSeatsRequest { FlightId = flightCommand.Id.ToString() });
// Assert
response?.Should().NotBeNull();
diff --git a/src/Services/Flight/tests/UnitTest/Aircraft/Features/CreateAircraftTests/CreateAircraftCommandHandlerTests.cs b/src/Services/Flight/tests/UnitTest/Aircraft/Features/CreateAircraftTests/CreateAircraftCommandHandlerTests.cs
index 041aab15..6c299414 100644
--- a/src/Services/Flight/tests/UnitTest/Aircraft/Features/CreateAircraftTests/CreateAircraftCommandHandlerTests.cs
+++ b/src/Services/Flight/tests/UnitTest/Aircraft/Features/CreateAircraftTests/CreateAircraftCommandHandlerTests.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Threading;
using System.Threading.Tasks;
using FluentAssertions;
diff --git a/src/Services/Flight/tests/UnitTest/Aircraft/Features/CreateAircraftTests/CreateAircraftCommandValidatorTests.cs b/src/Services/Flight/tests/UnitTest/Aircraft/Features/CreateAircraftTests/CreateAircraftCommandValidatorTests.cs
index 8937533d..c68142ab 100644
--- a/src/Services/Flight/tests/UnitTest/Aircraft/Features/CreateAircraftTests/CreateAircraftCommandValidatorTests.cs
+++ b/src/Services/Flight/tests/UnitTest/Aircraft/Features/CreateAircraftTests/CreateAircraftCommandValidatorTests.cs
@@ -1,4 +1,4 @@
-using FluentAssertions;
+using FluentAssertions;
using FluentValidation.TestHelper;
using Unit.Test.Common;
using Unit.Test.Fakes;
diff --git a/src/Services/Flight/tests/UnitTest/Airport/Features/CreateAirportTests/CreateAirportCommandValidatorTests.cs b/src/Services/Flight/tests/UnitTest/Airport/Features/CreateAirportTests/CreateAirportCommandValidatorTests.cs
index 3d62eaf1..9fa877e3 100644
--- a/src/Services/Flight/tests/UnitTest/Airport/Features/CreateAirportTests/CreateAirportCommandValidatorTests.cs
+++ b/src/Services/Flight/tests/UnitTest/Airport/Features/CreateAirportTests/CreateAirportCommandValidatorTests.cs
@@ -1,4 +1,4 @@
-using FluentAssertions;
+using FluentAssertions;
using FluentValidation.TestHelper;
using Unit.Test.Common;
using Unit.Test.Fakes;
diff --git a/src/Services/Flight/tests/UnitTest/Common/MapperFactory.cs b/src/Services/Flight/tests/UnitTest/Common/MapperFactory.cs
index 7145fa94..b8488052 100644
--- a/src/Services/Flight/tests/UnitTest/Common/MapperFactory.cs
+++ b/src/Services/Flight/tests/UnitTest/Common/MapperFactory.cs
@@ -1,4 +1,4 @@
-using Flight;
+using Flight;
using Mapster;
using MapsterMapper;
diff --git a/src/Services/Flight/tests/UnitTest/Common/UnitTestFixture.cs b/src/Services/Flight/tests/UnitTest/Common/UnitTestFixture.cs
index 08c9e441..57efaa65 100644
--- a/src/Services/Flight/tests/UnitTest/Common/UnitTestFixture.cs
+++ b/src/Services/Flight/tests/UnitTest/Common/UnitTestFixture.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using Flight.Data;
using MapsterMapper;
using Xunit;
diff --git a/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateAirportCommand.cs b/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateAirportCommand.cs
index 776a276c..f1fd4153 100644
--- a/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateAirportCommand.cs
+++ b/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateAirportCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
namespace Unit.Test.Fakes;
diff --git a/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateFlightCommand.cs b/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateFlightCommand.cs
index d16dae7c..1362b105 100644
--- a/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateFlightCommand.cs
+++ b/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateFlightCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
namespace Unit.Test.Fakes;
diff --git a/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateSeatCommand.cs b/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateSeatCommand.cs
index 4cab5f07..7810d1b4 100644
--- a/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateSeatCommand.cs
+++ b/src/Services/Flight/tests/UnitTest/Fakes/FakeCreateSeatCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
using Flight.Seats.Enums;
namespace Unit.Test.Fakes;
diff --git a/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateAircraftCommand.cs b/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateAircraftCommand.cs
index 3e4cf551..d2334863 100644
--- a/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateAircraftCommand.cs
+++ b/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateAircraftCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
namespace Unit.Test.Fakes;
diff --git a/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateAirportCommand.cs b/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateAirportCommand.cs
index 59003afe..508e85c8 100644
--- a/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateAirportCommand.cs
+++ b/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateAirportCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
namespace Unit.Test.Fakes;
diff --git a/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateFlightCommand.cs b/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateFlightCommand.cs
index 076045bc..007d7fd7 100644
--- a/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateFlightCommand.cs
+++ b/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateFlightCommand.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using AutoBogus;
using Flight.Flights.Enums;
diff --git a/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateSeatCommand.cs b/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateSeatCommand.cs
index 67e74be8..f7985a99 100644
--- a/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateSeatCommand.cs
+++ b/src/Services/Flight/tests/UnitTest/Fakes/FakeValidateCreateSeatCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
using Flight.Seats.Enums;
namespace Unit.Test.Fakes;
diff --git a/src/Services/Flight/tests/UnitTest/Flight/Features/Domains/CreateFlightTests.cs b/src/Services/Flight/tests/UnitTest/Flight/Features/Domains/CreateFlightTests.cs
index 621d55ad..bd4b3f6d 100644
--- a/src/Services/Flight/tests/UnitTest/Flight/Features/Domains/CreateFlightTests.cs
+++ b/src/Services/Flight/tests/UnitTest/Flight/Features/Domains/CreateFlightTests.cs
@@ -1,4 +1,4 @@
-namespace Unit.Test.Flight.Features.Domains
+namespace Unit.Test.Flight.Features.Domains
{
using System.Linq;
using FluentAssertions;
diff --git a/src/Services/Flight/tests/UnitTest/Flight/Features/Handlers/CreateFlight/CreateFlightCommandValidatorTests.cs b/src/Services/Flight/tests/UnitTest/Flight/Features/Handlers/CreateFlight/CreateFlightCommandValidatorTests.cs
index 98b05a15..c339532e 100644
--- a/src/Services/Flight/tests/UnitTest/Flight/Features/Handlers/CreateFlight/CreateFlightCommandValidatorTests.cs
+++ b/src/Services/Flight/tests/UnitTest/Flight/Features/Handlers/CreateFlight/CreateFlightCommandValidatorTests.cs
@@ -1,4 +1,4 @@
-namespace Unit.Test.Flight.Features.Handlers.CreateFlight;
+namespace Unit.Test.Flight.Features.Handlers.CreateFlight;
using FluentAssertions;
using FluentValidation.TestHelper;
diff --git a/src/Services/Flight/tests/UnitTest/Seat/Features/CreateSeatCommandValidatorTests.cs b/src/Services/Flight/tests/UnitTest/Seat/Features/CreateSeatCommandValidatorTests.cs
index 32966705..79bb0879 100644
--- a/src/Services/Flight/tests/UnitTest/Seat/Features/CreateSeatCommandValidatorTests.cs
+++ b/src/Services/Flight/tests/UnitTest/Seat/Features/CreateSeatCommandValidatorTests.cs
@@ -1,4 +1,4 @@
-using FluentAssertions;
+using FluentAssertions;
using FluentValidation.TestHelper;
using Unit.Test.Common;
using Unit.Test.Fakes;
diff --git a/src/Services/Flight/tests/UnitTest/Unit.Test.csproj b/src/Services/Flight/tests/UnitTest/Unit.Test.csproj
index d712577d..6e00b08a 100644
--- a/src/Services/Flight/tests/UnitTest/Unit.Test.csproj
+++ b/src/Services/Flight/tests/UnitTest/Unit.Test.csproj
@@ -1,11 +1,5 @@
-
- net8.0
- false
- enable
-
-
PreserveNewest
@@ -13,7 +7,7 @@
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Services/Identity/src/Identity.Api/Identity.Api.csproj b/src/Services/Identity/src/Identity.Api/Identity.Api.csproj
index 9f655f08..af738c1c 100644
--- a/src/Services/Identity/src/Identity.Api/Identity.Api.csproj
+++ b/src/Services/Identity/src/Identity.Api/Identity.Api.csproj
@@ -1,11 +1,5 @@
-
- net8.0
- enable
- enable
-
-
diff --git a/src/Services/Identity/src/Identity.Api/Program.cs b/src/Services/Identity/src/Identity.Api/Program.cs
index af79076c..20c7bedf 100644
--- a/src/Services/Identity/src/Identity.Api/Program.cs
+++ b/src/Services/Identity/src/Identity.Api/Program.cs
@@ -12,7 +12,7 @@
options.ValidateOnBuild = true;
});
-builder.AddMinimalEndpoints(assemblies:typeof(IdentityRoot).Assembly);
+builder.AddMinimalEndpoints(assemblies: typeof(IdentityRoot).Assembly);
builder.AddInfrastructure();
var app = builder.Build();
diff --git a/src/Services/Identity/src/Identity/Configurations/AuthOptions.cs b/src/Services/Identity/src/Identity/Configurations/AuthOptions.cs
index ecf07cc1..c7b7605d 100644
--- a/src/Services/Identity/src/Identity/Configurations/AuthOptions.cs
+++ b/src/Services/Identity/src/Identity/Configurations/AuthOptions.cs
@@ -1,4 +1,4 @@
-namespace Identity.Configurations;
+namespace Identity.Configurations;
public class AuthOptions
{
diff --git a/src/Services/Identity/src/Identity/Data/Configurations/RoleClaimConfiguration.cs b/src/Services/Identity/src/Identity/Data/Configurations/RoleClaimConfiguration.cs
index d9e285e0..58fabd94 100644
--- a/src/Services/Identity/src/Identity/Data/Configurations/RoleClaimConfiguration.cs
+++ b/src/Services/Identity/src/Identity/Data/Configurations/RoleClaimConfiguration.cs
@@ -1,4 +1,4 @@
-namespace Identity.Data.Configurations;
+namespace Identity.Data.Configurations;
using Identity.Models;
using Microsoft.EntityFrameworkCore;
diff --git a/src/Services/Identity/src/Identity/Data/Configurations/RoleConfiguration.cs b/src/Services/Identity/src/Identity/Data/Configurations/RoleConfiguration.cs
index a52b7d01..991cdea9 100644
--- a/src/Services/Identity/src/Identity/Data/Configurations/RoleConfiguration.cs
+++ b/src/Services/Identity/src/Identity/Data/Configurations/RoleConfiguration.cs
@@ -1,4 +1,4 @@
-namespace Identity.Data.Configurations;
+namespace Identity.Data.Configurations;
using Identity.Models;
using Microsoft.EntityFrameworkCore;
diff --git a/src/Services/Identity/src/Identity/Data/Configurations/UserClaimConfiguration.cs b/src/Services/Identity/src/Identity/Data/Configurations/UserClaimConfiguration.cs
index dee679ca..40f2d308 100644
--- a/src/Services/Identity/src/Identity/Data/Configurations/UserClaimConfiguration.cs
+++ b/src/Services/Identity/src/Identity/Data/Configurations/UserClaimConfiguration.cs
@@ -1,4 +1,4 @@
-namespace Identity.Data.Configurations;
+namespace Identity.Data.Configurations;
using Identity.Models;
using Microsoft.EntityFrameworkCore;
diff --git a/src/Services/Identity/src/Identity/Data/Configurations/UserConfiguration.cs b/src/Services/Identity/src/Identity/Data/Configurations/UserConfiguration.cs
index 71169b04..9a666118 100644
--- a/src/Services/Identity/src/Identity/Data/Configurations/UserConfiguration.cs
+++ b/src/Services/Identity/src/Identity/Data/Configurations/UserConfiguration.cs
@@ -1,4 +1,4 @@
-namespace Identity.Data.Configurations;
+namespace Identity.Data.Configurations;
using Identity.Models;
using Microsoft.EntityFrameworkCore;
diff --git a/src/Services/Identity/src/Identity/Data/Configurations/UserLoginConfiguration.cs b/src/Services/Identity/src/Identity/Data/Configurations/UserLoginConfiguration.cs
index d5966d53..4b556b0d 100644
--- a/src/Services/Identity/src/Identity/Data/Configurations/UserLoginConfiguration.cs
+++ b/src/Services/Identity/src/Identity/Data/Configurations/UserLoginConfiguration.cs
@@ -1,4 +1,4 @@
-namespace Identity.Data.Configurations;
+namespace Identity.Data.Configurations;
using Identity.Models;
using Microsoft.EntityFrameworkCore;
diff --git a/src/Services/Identity/src/Identity/Data/Configurations/UserRoleConfiguration.cs b/src/Services/Identity/src/Identity/Data/Configurations/UserRoleConfiguration.cs
index 3f8ca2e4..c0f4bf81 100644
--- a/src/Services/Identity/src/Identity/Data/Configurations/UserRoleConfiguration.cs
+++ b/src/Services/Identity/src/Identity/Data/Configurations/UserRoleConfiguration.cs
@@ -1,4 +1,4 @@
-namespace Identity.Data.Configurations;
+namespace Identity.Data.Configurations;
using Identity.Models;
using Microsoft.EntityFrameworkCore;
diff --git a/src/Services/Identity/src/Identity/Data/Configurations/UserTokenConfiguration.cs b/src/Services/Identity/src/Identity/Data/Configurations/UserTokenConfiguration.cs
index a0a8b146..380151e5 100644
--- a/src/Services/Identity/src/Identity/Data/Configurations/UserTokenConfiguration.cs
+++ b/src/Services/Identity/src/Identity/Data/Configurations/UserTokenConfiguration.cs
@@ -1,4 +1,4 @@
-namespace Identity.Data.Configurations;
+namespace Identity.Data.Configurations;
using Identity.Models;
using Microsoft.EntityFrameworkCore;
diff --git a/src/Services/Identity/src/Identity/Data/IdentityContext.cs b/src/Services/Identity/src/Identity/Data/IdentityContext.cs
index b896a98b..e0f3237a 100644
--- a/src/Services/Identity/src/Identity/Data/IdentityContext.cs
+++ b/src/Services/Identity/src/Identity/Data/IdentityContext.cs
@@ -41,7 +41,8 @@ protected override void OnModelCreating(ModelBuilder builder)
public async Task BeginTransactionAsync(CancellationToken cancellationToken = default)
{
- if (_currentTransaction != null) return;
+ if (_currentTransaction != null)
+ return;
_currentTransaction = await Database.BeginTransactionAsync(IsolationLevel.ReadCommitted, cancellationToken);
}
diff --git a/src/Services/Identity/src/Identity/Data/Migrations/20230331193410_initial.cs b/src/Services/Identity/src/Identity/Data/Migrations/20230331193410_initial.cs
index ec60a880..02df8edf 100644
--- a/src/Services/Identity/src/Identity/Data/Migrations/20230331193410_initial.cs
+++ b/src/Services/Identity/src/Identity/Data/Migrations/20230331193410_initial.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
diff --git a/src/Services/Identity/src/Identity/Data/Seed/IdentityDataSeeder.cs b/src/Services/Identity/src/Identity/Data/Seed/IdentityDataSeeder.cs
index e1abb61e..32badec0 100644
--- a/src/Services/Identity/src/Identity/Data/Seed/IdentityDataSeeder.cs
+++ b/src/Services/Identity/src/Identity/Data/Seed/IdentityDataSeeder.cs
@@ -36,12 +36,12 @@ private async Task SeedRoles()
{
if (await _roleManager.RoleExistsAsync(Constants.Role.Admin) == false)
{
- await _roleManager.CreateAsync(new Role {Name = Constants.Role.Admin});
+ await _roleManager.CreateAsync(new Role { Name = Constants.Role.Admin });
}
if (await _roleManager.RoleExistsAsync(Constants.Role.User) == false)
{
- await _roleManager.CreateAsync(new Role {Name = Constants.Role.User});
+ await _roleManager.CreateAsync(new Role { Name = Constants.Role.User });
}
}
diff --git a/src/Services/Identity/src/Identity/Data/Seed/InitialData.cs b/src/Services/Identity/src/Identity/Data/Seed/InitialData.cs
index 8ff1bd10..e380c82c 100644
--- a/src/Services/Identity/src/Identity/Data/Seed/InitialData.cs
+++ b/src/Services/Identity/src/Identity/Data/Seed/InitialData.cs
@@ -1,4 +1,4 @@
-namespace Identity.Data.Seed;
+namespace Identity.Data.Seed;
using System;
using System.Collections.Generic;
diff --git a/src/Services/Identity/src/Identity/Extensions/Infrastructure/IdentityServerExtensions.cs b/src/Services/Identity/src/Identity/Extensions/Infrastructure/IdentityServerExtensions.cs
index d3944e0b..5605abea 100644
--- a/src/Services/Identity/src/Identity/Extensions/Infrastructure/IdentityServerExtensions.cs
+++ b/src/Services/Identity/src/Identity/Extensions/Infrastructure/IdentityServerExtensions.cs
@@ -1,9 +1,9 @@
+using BuildingBlocks.Web;
using Identity.Data;
using Identity.Identity.Models;
+using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.DependencyInjection;
-using BuildingBlocks.Web;
-using Microsoft.AspNetCore.Builder;
namespace Identity.Extensions.Infrastructure;
diff --git a/src/Services/Identity/src/Identity/Extensions/Infrastructure/InfrastructureExtensions.cs b/src/Services/Identity/src/Identity/Extensions/Infrastructure/InfrastructureExtensions.cs
index 69415fe5..38dc7e84 100644
--- a/src/Services/Identity/src/Identity/Extensions/Infrastructure/InfrastructureExtensions.cs
+++ b/src/Services/Identity/src/Identity/Extensions/Infrastructure/InfrastructureExtensions.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Threading.RateLimiting;
using BuildingBlocks.Core;
using BuildingBlocks.EFCore;
@@ -54,7 +54,10 @@ public static WebApplicationBuilder AddInfrastructure(this WebApplicationBuilder
partitionKey: httpContext.User.Identity?.Name ?? httpContext.Request.Headers.Host.ToString(),
factory: partition => new FixedWindowRateLimiterOptions
{
- AutoReplenishment = true, PermitLimit = 10, QueueLimit = 0, Window = TimeSpan.FromMinutes(1)
+ AutoReplenishment = true,
+ PermitLimit = 10,
+ QueueLimit = 0,
+ Window = TimeSpan.FromMinutes(1)
}));
});
diff --git a/src/Services/Identity/src/Identity/Identity.csproj b/src/Services/Identity/src/Identity/Identity.csproj
index 64fec227..4e816923 100644
--- a/src/Services/Identity/src/Identity/Identity.csproj
+++ b/src/Services/Identity/src/Identity/Identity.csproj
@@ -1,12 +1,7 @@
-
- net8.0
- enable
-
-
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Services/Identity/src/Identity/Identity/Features/IdentityMappings.cs b/src/Services/Identity/src/Identity/Identity/Features/IdentityMappings.cs
index 166ccac7..906485a8 100644
--- a/src/Services/Identity/src/Identity/Identity/Features/IdentityMappings.cs
+++ b/src/Services/Identity/src/Identity/Identity/Features/IdentityMappings.cs
@@ -1,4 +1,4 @@
-using Mapster;
+using Mapster;
namespace Identity.Identity.Features;
diff --git a/src/Services/Identity/src/Identity/Identity/Models/Role.cs b/src/Services/Identity/src/Identity/Identity/Models/Role.cs
index 832db454..3e14e3d9 100644
--- a/src/Services/Identity/src/Identity/Identity/Models/Role.cs
+++ b/src/Services/Identity/src/Identity/Identity/Models/Role.cs
@@ -1,10 +1,10 @@
-namespace Identity.Identity.Models;
+namespace Identity.Identity.Models;
using System;
using BuildingBlocks.Core.Model;
using Microsoft.AspNetCore.Identity;
-public class Role: IdentityRole, IVersion
+public class Role : IdentityRole, IVersion
{
public long Version { get; set; }
}
diff --git a/src/Services/Identity/src/Identity/Identity/Models/RoleClaim.cs b/src/Services/Identity/src/Identity/Identity/Models/RoleClaim.cs
index 1e2110fb..cc59e12a 100644
--- a/src/Services/Identity/src/Identity/Identity/Models/RoleClaim.cs
+++ b/src/Services/Identity/src/Identity/Identity/Models/RoleClaim.cs
@@ -1,10 +1,10 @@
-namespace Identity.Identity.Models;
+namespace Identity.Identity.Models;
using System;
using BuildingBlocks.Core.Model;
using Microsoft.AspNetCore.Identity;
-public class RoleClaim: IdentityRoleClaim, IVersion
+public class RoleClaim : IdentityRoleClaim, IVersion
{
public long Version { get; set; }
}
diff --git a/src/Services/Identity/src/Identity/Identity/Models/UserClaim.cs b/src/Services/Identity/src/Identity/Identity/Models/UserClaim.cs
index 1f9398e3..c77e4334 100644
--- a/src/Services/Identity/src/Identity/Identity/Models/UserClaim.cs
+++ b/src/Services/Identity/src/Identity/Identity/Models/UserClaim.cs
@@ -1,10 +1,10 @@
-namespace Identity.Identity.Models;
+namespace Identity.Identity.Models;
using System;
using BuildingBlocks.Core.Model;
using Microsoft.AspNetCore.Identity;
-public class UserClaim: IdentityUserClaim, IVersion
+public class UserClaim : IdentityUserClaim, IVersion
{
public long Version { get; set; }
}
diff --git a/src/Services/Identity/src/Identity/Identity/Models/UserLogin.cs b/src/Services/Identity/src/Identity/Identity/Models/UserLogin.cs
index e3191d54..4d9fc224 100644
--- a/src/Services/Identity/src/Identity/Identity/Models/UserLogin.cs
+++ b/src/Services/Identity/src/Identity/Identity/Models/UserLogin.cs
@@ -1,10 +1,10 @@
-namespace Identity.Identity.Models;
+namespace Identity.Identity.Models;
using System;
using BuildingBlocks.Core.Model;
using Microsoft.AspNetCore.Identity;
-public class UserLogin: IdentityUserLogin, IVersion
+public class UserLogin : IdentityUserLogin, IVersion
{
public long Version { get; set; }
}
diff --git a/src/Services/Identity/src/Identity/Identity/Models/UserRole.cs b/src/Services/Identity/src/Identity/Identity/Models/UserRole.cs
index 6de6778b..3f0adf34 100644
--- a/src/Services/Identity/src/Identity/Identity/Models/UserRole.cs
+++ b/src/Services/Identity/src/Identity/Identity/Models/UserRole.cs
@@ -1,10 +1,10 @@
-namespace Identity.Identity.Models;
+namespace Identity.Identity.Models;
using System;
using BuildingBlocks.Core.Model;
using Microsoft.AspNetCore.Identity;
-public class UserRole: IdentityUserRole, IVersion
+public class UserRole : IdentityUserRole, IVersion
{
public long Version { get; set; }
}
diff --git a/src/Services/Identity/src/Identity/Identity/Models/UserToken.cs b/src/Services/Identity/src/Identity/Identity/Models/UserToken.cs
index ae43e28b..ce88cbf9 100644
--- a/src/Services/Identity/src/Identity/Identity/Models/UserToken.cs
+++ b/src/Services/Identity/src/Identity/Identity/Models/UserToken.cs
@@ -1,10 +1,10 @@
-namespace Identity.Identity.Models;
+namespace Identity.Identity.Models;
using System;
using BuildingBlocks.Core.Model;
using Microsoft.AspNetCore.Identity;
-public class UserToken: IdentityUserToken, IVersion
+public class UserToken : IdentityUserToken, IVersion
{
public long Version { get; set; }
}
diff --git a/src/Services/Identity/tests/IntegrationTest/Fakes/FakeRegisterNewUserCommand.cs b/src/Services/Identity/tests/IntegrationTest/Fakes/FakeRegisterNewUserCommand.cs
index beb1e9f6..f351009e 100644
--- a/src/Services/Identity/tests/IntegrationTest/Fakes/FakeRegisterNewUserCommand.cs
+++ b/src/Services/Identity/tests/IntegrationTest/Fakes/FakeRegisterNewUserCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
namespace Integration.Test.Fakes;
diff --git a/src/Services/Identity/tests/IntegrationTest/Identity/Features/RegisterNewUserTests.cs b/src/Services/Identity/tests/IntegrationTest/Identity/Features/RegisterNewUserTests.cs
index dfc34a43..f606fef3 100644
--- a/src/Services/Identity/tests/IntegrationTest/Identity/Features/RegisterNewUserTests.cs
+++ b/src/Services/Identity/tests/IntegrationTest/Identity/Features/RegisterNewUserTests.cs
@@ -1,4 +1,4 @@
-using System.Threading.Tasks;
+using System.Threading.Tasks;
using BuildingBlocks.Contracts.EventBus.Messages;
using BuildingBlocks.TestBase;
using FluentAssertions;
diff --git a/src/Services/Identity/tests/IntegrationTest/IdentityIntegrationTestBase.cs b/src/Services/Identity/tests/IntegrationTest/IdentityIntegrationTestBase.cs
index a60e96f3..248d45c9 100644
--- a/src/Services/Identity/tests/IntegrationTest/IdentityIntegrationTestBase.cs
+++ b/src/Services/Identity/tests/IntegrationTest/IdentityIntegrationTestBase.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.TestBase;
+using BuildingBlocks.TestBase;
using Identity.Api;
using Identity.Data;
using Xunit;
@@ -6,7 +6,7 @@
namespace Integration.Test;
[Collection(IntegrationTestCollection.Name)]
-public class IdentityIntegrationTestBase: TestWriteBase
+public class IdentityIntegrationTestBase : TestWriteBase
{
public IdentityIntegrationTestBase(TestWriteFixture integrationTestFactory)
: base(integrationTestFactory)
diff --git a/src/Services/Identity/tests/IntegrationTest/Integration.Test.csproj b/src/Services/Identity/tests/IntegrationTest/Integration.Test.csproj
index a0acfe3d..360c1055 100644
--- a/src/Services/Identity/tests/IntegrationTest/Integration.Test.csproj
+++ b/src/Services/Identity/tests/IntegrationTest/Integration.Test.csproj
@@ -1,11 +1,5 @@
-
- net8.0
- false
- enable
-
-
PreserveNewest
@@ -13,7 +7,7 @@
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Services/Passenger/src/Passenger.Api/Passenger.Api.csproj b/src/Services/Passenger/src/Passenger.Api/Passenger.Api.csproj
index 1fabf7c6..8e87cd5c 100644
--- a/src/Services/Passenger/src/Passenger.Api/Passenger.Api.csproj
+++ b/src/Services/Passenger/src/Passenger.Api/Passenger.Api.csproj
@@ -1,11 +1,5 @@
-
- net8.0
- enable
- enable
-
-
diff --git a/src/Services/Passenger/src/Passenger.Api/Program.cs b/src/Services/Passenger/src/Passenger.Api/Program.cs
index bf17e880..5d1aeacb 100644
--- a/src/Services/Passenger/src/Passenger.Api/Program.cs
+++ b/src/Services/Passenger/src/Passenger.Api/Program.cs
@@ -12,7 +12,7 @@
options.ValidateOnBuild = true;
});
-builder.AddMinimalEndpoints(assemblies:typeof(PassengerRoot).Assembly);
+builder.AddMinimalEndpoints(assemblies: typeof(PassengerRoot).Assembly);
builder.AddInfrastructure();
var app = builder.Build();
diff --git a/src/Services/Passenger/src/Passenger/Data/DesignTimeDbContextFactory.cs b/src/Services/Passenger/src/Passenger/Data/DesignTimeDbContextFactory.cs
index d56404d6..4ee9534d 100644
--- a/src/Services/Passenger/src/Passenger/Data/DesignTimeDbContextFactory.cs
+++ b/src/Services/Passenger/src/Passenger/Data/DesignTimeDbContextFactory.cs
@@ -3,7 +3,7 @@
namespace Passenger.Data;
-public class DesignTimeDbContextFactory: IDesignTimeDbContextFactory
+public class DesignTimeDbContextFactory : IDesignTimeDbContextFactory
{
public PassengerDbContext CreateDbContext(string[] args)
{
diff --git a/src/Services/Passenger/src/Passenger/Data/Migrations/20230611213031_initial.cs b/src/Services/Passenger/src/Passenger/Data/Migrations/20230611213031_initial.cs
index 754a595c..57c16475 100644
--- a/src/Services/Passenger/src/Passenger/Data/Migrations/20230611213031_initial.cs
+++ b/src/Services/Passenger/src/Passenger/Data/Migrations/20230611213031_initial.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
diff --git a/src/Services/Passenger/src/Passenger/Data/PassengerReadDbContext.cs b/src/Services/Passenger/src/Passenger/Data/PassengerReadDbContext.cs
index 62aa107d..e4dcf14b 100644
--- a/src/Services/Passenger/src/Passenger/Data/PassengerReadDbContext.cs
+++ b/src/Services/Passenger/src/Passenger/Data/PassengerReadDbContext.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.Mongo;
+using BuildingBlocks.Mongo;
using Humanizer;
using Microsoft.Extensions.Options;
using MongoDB.Driver;
diff --git a/src/Services/Passenger/src/Passenger/Extensions/Infrastructure/InfrastructureExtensions.cs b/src/Services/Passenger/src/Passenger/Extensions/Infrastructure/InfrastructureExtensions.cs
index 54b89c5b..ef9bd451 100644
--- a/src/Services/Passenger/src/Passenger/Extensions/Infrastructure/InfrastructureExtensions.cs
+++ b/src/Services/Passenger/src/Passenger/Extensions/Infrastructure/InfrastructureExtensions.cs
@@ -1,4 +1,4 @@
-using System.Threading.RateLimiting;
+using System.Threading.RateLimiting;
using BuildingBlocks.Core;
using BuildingBlocks.EFCore;
using BuildingBlocks.Exception;
@@ -53,7 +53,10 @@ public static WebApplicationBuilder AddInfrastructure(this WebApplicationBuilder
partitionKey: httpContext.User.Identity?.Name ?? httpContext.Request.Headers.Host.ToString(),
factory: partition => new FixedWindowRateLimiterOptions
{
- AutoReplenishment = true, PermitLimit = 10, QueueLimit = 0, Window = TimeSpan.FromMinutes(1)
+ AutoReplenishment = true,
+ PermitLimit = 10,
+ QueueLimit = 0,
+ Window = TimeSpan.FromMinutes(1)
}));
});
diff --git a/src/Services/Passenger/src/Passenger/GrpcServer/Services/PassengerGrpcServices.cs b/src/Services/Passenger/src/Passenger/GrpcServer/Services/PassengerGrpcServices.cs
index 3b9cf371..d66cca53 100644
--- a/src/Services/Passenger/src/Passenger/GrpcServer/Services/PassengerGrpcServices.cs
+++ b/src/Services/Passenger/src/Passenger/GrpcServer/Services/PassengerGrpcServices.cs
@@ -1,4 +1,4 @@
-using Grpc.Core;
+using Grpc.Core;
using MediatR;
namespace Passenger.GrpcServer.Services;
diff --git a/src/Services/Passenger/src/Passenger/Identity/Consumers/RegisteringNewUser/V1/PassengerCreatedDomainEvent.cs b/src/Services/Passenger/src/Passenger/Identity/Consumers/RegisteringNewUser/V1/PassengerCreatedDomainEvent.cs
index ce31b861..1e96c2da 100644
--- a/src/Services/Passenger/src/Passenger/Identity/Consumers/RegisteringNewUser/V1/PassengerCreatedDomainEvent.cs
+++ b/src/Services/Passenger/src/Passenger/Identity/Consumers/RegisteringNewUser/V1/PassengerCreatedDomainEvent.cs
@@ -1,4 +1,4 @@
-namespace Passenger.Identity.Consumers.RegisteringNewUser.V1;
+namespace Passenger.Identity.Consumers.RegisteringNewUser.V1;
using BuildingBlocks.Core.Event;
diff --git a/src/Services/Passenger/src/Passenger/Passenger.csproj b/src/Services/Passenger/src/Passenger/Passenger.csproj
index bf1d4be3..015938e8 100644
--- a/src/Services/Passenger/src/Passenger/Passenger.csproj
+++ b/src/Services/Passenger/src/Passenger/Passenger.csproj
@@ -1,14 +1,8 @@
-
- net8.0
- enable
- enable
-
-
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Services/Passenger/src/Passenger/PassengerRoot.cs b/src/Services/Passenger/src/Passenger/PassengerRoot.cs
index 003d77e6..faf4fe55 100644
--- a/src/Services/Passenger/src/Passenger/PassengerRoot.cs
+++ b/src/Services/Passenger/src/Passenger/PassengerRoot.cs
@@ -2,5 +2,5 @@ namespace Passenger;
public class PassengerRoot
{
-
-}
\ No newline at end of file
+
+}
diff --git a/src/Services/Passenger/src/Passenger/Passengers/Exceptions/PassengerNotFoundException.cs b/src/Services/Passenger/src/Passenger/Passengers/Exceptions/PassengerNotFoundException.cs
index 845d8763..771089ea 100644
--- a/src/Services/Passenger/src/Passenger/Passengers/Exceptions/PassengerNotFoundException.cs
+++ b/src/Services/Passenger/src/Passenger/Passengers/Exceptions/PassengerNotFoundException.cs
@@ -2,7 +2,7 @@ namespace Passenger.Passengers.Exceptions;
using BuildingBlocks.Exception;
-public class PassengerNotFoundException: NotFoundException
+public class PassengerNotFoundException : NotFoundException
{
public PassengerNotFoundException(string code = default) : base("Passenger not found!")
{
diff --git a/src/Services/Passenger/src/Passenger/Passengers/Models/Passenger.cs b/src/Services/Passenger/src/Passenger/Passengers/Models/Passenger.cs
index 7fa03b8e..1b287b9a 100644
--- a/src/Services/Passenger/src/Passenger/Passengers/Models/Passenger.cs
+++ b/src/Services/Passenger/src/Passenger/Passengers/Models/Passenger.cs
@@ -3,8 +3,8 @@
namespace Passenger.Passengers.Models;
using Features.CompletingRegisterPassenger.V1;
-using ValueObjects;
using Identity.Consumers.RegisteringNewUser.V1;
+using ValueObjects;
public record Passenger : Aggregate
{
diff --git a/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeCompleteRegisterPassengerCommand.cs b/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeCompleteRegisterPassengerCommand.cs
index e0cdc646..d4706863 100644
--- a/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeCompleteRegisterPassengerCommand.cs
+++ b/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeCompleteRegisterPassengerCommand.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
using Passenger.Passengers.Enums;
namespace Integration.Test.Fakes;
diff --git a/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeCompleteRegisterPassengerMongoCommand.cs b/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeCompleteRegisterPassengerMongoCommand.cs
index a62fafc6..f4c3f05f 100644
--- a/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeCompleteRegisterPassengerMongoCommand.cs
+++ b/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeCompleteRegisterPassengerMongoCommand.cs
@@ -1,15 +1,15 @@
-namespace Integration.Test.Fakes;
+namespace Integration.Test.Fakes;
using AutoBogus;
using global::Passenger.Passengers.Enums;
using global::Passenger.Passengers.Features.CompletingRegisterPassenger.V1;
using MassTransit;
-public class FakeCompleteRegisterPassengerMongoCommand: AutoFaker
+public class FakeCompleteRegisterPassengerMongoCommand : AutoFaker
{
public FakeCompleteRegisterPassengerMongoCommand()
{
- RuleFor(r => r.Id, _ => NewId.NextGuid());
+ RuleFor(r => r.Id, _ => NewId.NextGuid());
RuleFor(r => r.Name, _ => "Sam");
RuleFor(r => r.PassportNumber, _ => "123456789");
RuleFor(r => r.Age, _ => 30);
diff --git a/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeUserCreated.cs b/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeUserCreated.cs
index 7337754c..de9e78ed 100644
--- a/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeUserCreated.cs
+++ b/src/Services/Passenger/tests/IntegrationTest/Fakes/FakeUserCreated.cs
@@ -1,4 +1,4 @@
-using AutoBogus;
+using AutoBogus;
using BuildingBlocks.Contracts.EventBus.Messages;
namespace Integration.Test.Fakes;
@@ -9,7 +9,7 @@ public class FakeUserCreated : AutoFaker
{
public FakeUserCreated()
{
- RuleFor(r => r.Id, _ => NewId.NextGuid());
+ RuleFor(r => r.Id, _ => NewId.NextGuid());
RuleFor(r => r.Name, _ => "Sam");
RuleFor(r => r.PassportNumber, _ => "123456789");
}
diff --git a/src/Services/Passenger/tests/IntegrationTest/Integration.Test.csproj b/src/Services/Passenger/tests/IntegrationTest/Integration.Test.csproj
index 555eefad..0ae4574d 100644
--- a/src/Services/Passenger/tests/IntegrationTest/Integration.Test.csproj
+++ b/src/Services/Passenger/tests/IntegrationTest/Integration.Test.csproj
@@ -1,11 +1,5 @@
-
- net8.0
- false
- enable
-
-
PreserveNewest
@@ -13,7 +7,7 @@
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Services/Passenger/tests/IntegrationTest/Passenger/Features/GetPassengerByIdTests.cs b/src/Services/Passenger/tests/IntegrationTest/Passenger/Features/GetPassengerByIdTests.cs
index 76df5c0e..3ca8e953 100644
--- a/src/Services/Passenger/tests/IntegrationTest/Passenger/Features/GetPassengerByIdTests.cs
+++ b/src/Services/Passenger/tests/IntegrationTest/Passenger/Features/GetPassengerByIdTests.cs
@@ -1,4 +1,4 @@
-using System.Threading.Tasks;
+using System.Threading.Tasks;
using BuildingBlocks.TestBase;
using FluentAssertions;
using Integration.Test.Fakes;
@@ -49,7 +49,7 @@ public async Task should_retrive_a_passenger_by_id_from_grpc_service()
var passengerGrpcClient = new PassengerGrpcService.PassengerGrpcServiceClient(Fixture.Channel);
// Act
- var response = await passengerGrpcClient.GetByIdAsync(new GetByIdRequest {Id = command.Id.ToString()});
+ var response = await passengerGrpcClient.GetByIdAsync(new GetByIdRequest { Id = command.Id.ToString() });
// Assert
response?.Should().NotBeNull();
diff --git a/src/Services/Passenger/tests/IntegrationTest/PassengerIntegrationTestBase.cs b/src/Services/Passenger/tests/IntegrationTest/PassengerIntegrationTestBase.cs
index 80aa9d9b..c0d04e9e 100644
--- a/src/Services/Passenger/tests/IntegrationTest/PassengerIntegrationTestBase.cs
+++ b/src/Services/Passenger/tests/IntegrationTest/PassengerIntegrationTestBase.cs
@@ -1,4 +1,4 @@
-using BuildingBlocks.TestBase;
+using BuildingBlocks.TestBase;
using Passenger.Api;
using Passenger.Data;
using Xunit;
@@ -6,7 +6,7 @@
namespace Integration.Test;
[Collection(IntegrationTestCollection.Name)]
-public class PassengerIntegrationTestBase: TestBase
+public class PassengerIntegrationTestBase : TestBase
{
public PassengerIntegrationTestBase(TestFixture integrationTestFactory)
: base(integrationTestFactory)
From 89657e832b99e6765cfe23d951d75f75b700fcf3 Mon Sep 17 00:00:00 2001
From: Meysam Hadeli <35596795+meysamhadeli@users.noreply.github.com>
Date: Mon, 16 Sep 2024 02:17:30 +0330
Subject: [PATCH 2/2] feat: add husky for handling pre commit rules
---
.husky/commit-msg | 1 +
package.json | 2 +-
src/ApiGateway/src/ApiGateway.csproj | 5 -----
src/Services/Booking/src/Booking/Booking.csproj | 6 +-----
.../Extensions/Infrastructure/GrpcClientExtensions.cs | 1 -
5 files changed, 3 insertions(+), 12 deletions(-)
create mode 100644 .husky/commit-msg
diff --git a/.husky/commit-msg b/.husky/commit-msg
new file mode 100644
index 00000000..8fe1e0af
--- /dev/null
+++ b/.husky/commit-msg
@@ -0,0 +1 @@
+npx --no -- commitlint --edit ${1}
\ No newline at end of file
diff --git a/package.json b/package.json
index 86534179..f9e4d252 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "booking-microservices",
"version": "1.0.0",
- "description": "",
+ "description": "booking-microservices",
"author": "Meysam Hadeli",
"license": "MIT",
"main": "index.js",
diff --git a/src/ApiGateway/src/ApiGateway.csproj b/src/ApiGateway/src/ApiGateway.csproj
index 6370e598..d6fbb2b7 100644
--- a/src/ApiGateway/src/ApiGateway.csproj
+++ b/src/ApiGateway/src/ApiGateway.csproj
@@ -1,10 +1,5 @@
-
- net8.0
- enable
-
-
diff --git a/src/Services/Booking/src/Booking/Booking.csproj b/src/Services/Booking/src/Booking/Booking.csproj
index d1d9d8ed..74b242f2 100644
--- a/src/Services/Booking/src/Booking/Booking.csproj
+++ b/src/Services/Booking/src/Booking/Booking.csproj
@@ -1,5 +1,5 @@
-
+
@@ -9,10 +9,6 @@
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
diff --git a/src/Services/Booking/src/Booking/Extensions/Infrastructure/GrpcClientExtensions.cs b/src/Services/Booking/src/Booking/Extensions/Infrastructure/GrpcClientExtensions.cs
index c4ca31cd..8c6d5018 100644
--- a/src/Services/Booking/src/Booking/Extensions/Infrastructure/GrpcClientExtensions.cs
+++ b/src/Services/Booking/src/Booking/Extensions/Infrastructure/GrpcClientExtensions.cs
@@ -27,7 +27,6 @@ public static IServiceCollection AddGrpcClients(this IServiceCollection services
})
.AddGrpcRetryPolicyHandler()
.AddGrpcCircuitBreakerPolicyHandler();
- ;
return services;
}