730 Commits

Author SHA1 Message Date
Jean Gatto 96cd4209dc refactor(IReadDbContext.cs): Remove unused methods and update comments 2023-08-13 10:51:56 -03:00
Jean Gatto 5b8a2abe40 feat(NoSqlDbContext.cs): add implementation of NoSqlDbContext class for MongoDB database access 2023-08-13 10:51:48 -03:00
Jean Gatto 31ee5c195d chore(ReadDbContext.cs): delete ReadDbContext.cs file 2023-08-13 10:51:35 -03:00
Jean Gatto f143acc01e refactor(ServicesCollectionExtensions.cs): rename method IsInMemory to CacheConnectionInMemory
refactor(ServicesCollectionExtensions.cs): simplify if statement in `AddCacheService` method
refactor(ServicesCollectionExtensions.cs): remove unused method `IsInMemory`
2023-08-13 10:34:08 -03:00
Jean Gatto a7ac3cd4f4 feat(ConnectionOptions.cs): add support for comparing SqlConnection string with "InMemory" using InvariantCultureIgnoreCase comparison 2023-08-13 10:33:54 -03:00
Jean Gatto 10baab74e4 refactor(ServicesCollectionExtensions.cs): refactor AddCommandHandlers method to use local assembly variable
chore(ServicesCollectionExtensions.cs): add missing newline at end of file
2023-08-13 10:24:24 -03:00
Jean Gatto 919dfb1c6d feat(ServicesCollectionExtensions.cs): add ExcludeFromCodeCoverage attribute to ServicesCollectionExtensions class
feat(ServicesCollectionExtensions.cs): add ReadDbContext as a singleton service
2023-08-13 10:24:13 -03:00
Jean Gatto 5fa4975ef3 refactor(Program.cs): rename DbContext and repository registrations for better clarity and separation of concerns 2023-08-13 10:20:17 -03:00
Jean Gatto fc04cb2297 feat(ServicesCollectionExtensions.cs): add AddQueryHandlers method to register query handlers
feat(ServicesCollectionExtensions.cs): add AddReadDbContext method to register ReadDbContext
feat(ServicesCollectionExtensions.cs): add AddReadOnlyRepositories method to register CustomerReadOnlyRepository
2023-08-13 10:20:01 -03:00
Jean Gatto e11d389527 refactor(ServicesCollectionExtensions.cs): rename AddShopDbContext to AddWriteDbContext
refactor(ServicesCollectionExtensions.cs): rename AddEventDbContext to AddWriteDbContext
refactor(ServicesCollectionExtensions.cs): rename IsInMemoryCache to IsInMemory
2023-08-13 10:19:27 -03:00
Jean Gatto 4c344c1040 feat(ServicesCollectionExtensions.cs): add method to register write-only repositories 2023-08-13 10:17:06 -03:00
Jean Gatto 3994eebedd chore(Directory.Packages.props): update FluentValidation and FluentValidation.DependencyInjectionExtensions package versions to 11.7.1 2023-08-13 10:16:45 -03:00
Jean Gatto 6db81e1603 refactor(EventToQueryModelProfile.cs): change Create method to be generic and accept any CustomerBaseEvent 2023-08-12 16:37:14 -03:00
Jean Gatto 80b6ac776c chore(sonar-cloud.yml): update dotnet build and dotnet test commands to include --nologo flag 2023-08-12 16:33:55 -03:00
Jean Gatto a5f5ea303e chore(dotnet.yml): update dotnet build and test commands to include --nologo flag 2023-08-12 16:33:49 -03:00
Jean Gatto 95f1283791 chore(Shop.PublicApi.csproj): remove GenerateDocumentationFile element 2023-08-12 16:21:26 -03:00
Jean Gatto d57af5a2d8 chore(Shop.PublicApi.csproj): specify runtime identifiers for the project, compile application assemblies as ReadyToRun format, show warnings for missing dependencies in ReadyToRun 2023-08-12 16:21:17 -03:00
Jean Gatto eb10a2aaa7 chore(Dockerfile): change ARG variable name from sdkVersion to sdk_version
fix(Dockerfile): remove --nologo flag from dotnet restore command
fix(Dockerfile): remove --nologo flag from dotnet build command
fix(Dockerfile): add --self-contained true flag to dotnet publish command
2023-08-12 16:20:43 -03:00
Jean Gatto a1a96cfc22 chore(Dockerfile): update base image version to $sdkVersion 2023-08-12 15:36:44 -03:00
Jean Gatto 6e9ef4114e refactor(ServicesCollectionExtensions.cs): simplify 2023-08-12 13:11:41 -03:00
Jean Gatto 415a3f849a refactor(EfSqliteFixture.cs): simplify Dispose method implementation 2023-08-12 09:22:20 -03:00
Jean Gatto babe7e27b3 chore(BaseWriteOnlyRepository.cs): remove unnecessary line break in Dispose method 2023-08-12 09:21:54 -03:00
Jean Gatto deb686bb30 refactor(EventStoreRepository.cs): remove unnecessary line break and simplify Dispose method implementation 2023-08-12 09:21:34 -03:00
Jean Gatto aae2a841ce refactor(UnitOfWork.cs): remove unnecessary line break and update Dispose method implementation 2023-08-12 09:19:56 -03:00
Jean Gatto e68698b6c5 chore(Email.cs): remove unnecessary comment and newline 2023-08-12 09:19:46 -03:00
Jean Gatto ab2903afac chore(Directory.Packages.props): update FluentValidation and FluentValidation.DependencyInjectionExtensions package versions to 11.7.0 2023-08-11 19:17:28 -03:00
Jean Gatto 04c96aaf4e chore(Directory.Packages.props): update MongoDB.Bson and MongoDB.Driver package versions to 2.21.0 2023-08-11 08:09:32 -03:00
Jean Gatto 11c8141835 fix(RegexPatterns.cs): fix email regex pattern to support special characters in local part 2023-08-10 20:31:05 -03:00
Jean Gatto 45df172418 chore(Directory.Build.props): remove NSubstitute.Analyzers.CSharp package reference 2023-08-09 22:01:17 -03:00
Jean Gatto d1c276ac3e chore(Shop.UnitTests.csproj): add NSubstitute.Analyzers.CSharp package reference 2023-08-09 22:01:09 -03:00
Jean Francisco Flores Gatto 4fd77915df Update global.json 2023-08-09 18:56:33 -03:00
Jean Gatto 6257fbfef5 chore(CreateCustomerCommandHandlerTests.cs): replace Moq with NSubstitute for mocking dependencies
fix(CreateCustomerCommandHandlerTests.cs): replace Mock.Of with Substitute.For for mocking dependencies
2023-08-09 18:23:03 -03:00
Jean Gatto cb3bff4b4e chore(Shop.UnitTests.csproj): remove Moq package reference and add NSubstitute package reference 2023-08-09 18:22:50 -03:00
Jean Gatto 04ffb98d33 chore(Directory.Packages.props): update package versions
- Update Moq.Analyzers to version 0.0.9
- Update Moq to version 4.20.2
- Update NSubstitute.Analyzers.CSharp to version 1.0.16
- Update NSubstitute to version 5.0.0
- Update SonarAnalyzer.CSharp to version 9.7.0.75501
2023-08-09 18:22:43 -03:00
Jean Gatto 0bfd6ab187 chore(Directory.Build.props): add NSubstitute.Analyzers.CSharp package reference 2023-08-09 18:22:35 -03:00
Jean Gatto cb4ada044c chore(Directory.Packages.props): update Moq package version from 4.20.1 to 4.20.2 2023-08-09 08:25:47 -03:00
Jean Gatto ca94078c0a chore(Dockerfile): add support for passing configuration argument during build and publish stages 2023-08-08 18:59:29 -03:00
Jean Gatto 651bf77fd7 feat(MiddlewareExtensions.cs): add MiddlewareExtensions class with UseCorrelationId and UseErrorHandling methods 2023-08-08 16:58:05 -03:00
Jean Gatto 6508bff007 feat(ApiResponse.cs): add ApiResponse class and ApiResponse<T> generic class for handling API responses 2023-08-08 16:56:15 -03:00
Jean Gatto d32059a856 chore(ApiResponseT.cs): remove ApiResponseT.cs file 2023-08-08 16:56:06 -03:00
Jean Gatto 26109148bf chore(global.json): update sdk version from 7.0.306 to 7.0.400 2023-08-08 15:59:22 -03:00
Jean Gatto 4111857f40 chore(ICorrelationIdGenerator.cs): add XML documentation for ICorrelationIdGenerator interface and its methods 2023-08-08 15:59:16 -03:00
Jean Gatto 43d85c3846 chore(Directory.Packages.props): update Microsoft.EntityFrameworkCore packages to version 7.0.10
chore(Directory.Packages.props): update Microsoft.Extensions.Caching.StackExchangeRedis package to version 7.0.10
chore(Directory.Packages.props): update Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore package to version 7.0.10
chore(Directory.Packages.props): update Microsoft.Extensions.Diagnostics.HealthChecks package to version 7.0.10
chore(Directory.Packages.props): update Microsoft.Extensions.Identity.Core package to version 7.0.10
2023-08-08 14:44:06 -03:00
Jean Gatto 584cd587b4 chore(Directory.Packages.props): update Moq package version from 4.18.4 to 4.20.1 2023-08-08 09:27:15 -03:00
Jean Gatto de868fe771 refactor(ErrorHandlingMiddleware.cs): extract ApiResponseJson variable for better code readability 2023-08-07 20:01:13 -03:00
Jean Gatto 2b8d9da033 feat(ErrorHandlingMiddleware.cs): add ErrorHandlingMiddleware to handle exceptions and return appropriate response
fix(Program.cs): add UseErrorHandling middleware to the application pipeline
2023-08-07 13:45:59 -03:00
Jean Gatto 53ac9e6cf1 chore(IWriteOnlyRepository.cs): remove trailing whitespace and add newline at end of file 2023-08-07 13:45:49 -03:00
Jean Gatto 1eb85b5d6a fix(EventStore.cs): add newline at the end of the file 2023-08-07 13:45:44 -03:00
Jean Gatto 1a710e1221 chore(BaseEvent.cs): remove trailing whitespace at the end of the file 2023-08-07 13:45:38 -03:00
Jean Gatto abbcb961b4 chore(Customer.cs): add XML documentation for default constructor 2023-08-07 11:21:08 -03:00