Commit Graph

  • 96cd4209dc refactor(IReadDbContext.cs): Remove unused methods and update comments Jean Gatto 2023-08-13 10:51:56 -03:00
  • 5b8a2abe40 feat(NoSqlDbContext.cs): add implementation of NoSqlDbContext class for MongoDB database access Jean Gatto 2023-08-13 10:51:48 -03:00
  • 31ee5c195d chore(ReadDbContext.cs): delete ReadDbContext.cs file Jean Gatto 2023-08-13 10:51:35 -03:00
  • 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 Jean Gatto 2023-08-13 10:34:08 -03:00
  • a7ac3cd4f4 feat(ConnectionOptions.cs): add support for comparing SqlConnection string with "InMemory" using InvariantCultureIgnoreCase comparison Jean Gatto 2023-08-13 10:33:54 -03:00
  • 10baab74e4 refactor(ServicesCollectionExtensions.cs): refactor AddCommandHandlers method to use local assembly variable chore(ServicesCollectionExtensions.cs): add missing newline at end of file Jean Gatto 2023-08-13 10:24:24 -03:00
  • 919dfb1c6d feat(ServicesCollectionExtensions.cs): add ExcludeFromCodeCoverage attribute to ServicesCollectionExtensions class feat(ServicesCollectionExtensions.cs): add ReadDbContext as a singleton service Jean Gatto 2023-08-13 10:24:13 -03:00
  • 5fa4975ef3 refactor(Program.cs): rename DbContext and repository registrations for better clarity and separation of concerns Jean Gatto 2023-08-13 10:20:17 -03:00
  • 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 Jean Gatto 2023-08-13 10:20:01 -03:00
  • e11d389527 refactor(ServicesCollectionExtensions.cs): rename AddShopDbContext to AddWriteDbContext refactor(ServicesCollectionExtensions.cs): rename AddEventDbContext to AddWriteDbContext refactor(ServicesCollectionExtensions.cs): rename IsInMemoryCache to IsInMemory Jean Gatto 2023-08-13 10:19:27 -03:00
  • 4c344c1040 feat(ServicesCollectionExtensions.cs): add method to register write-only repositories Jean Gatto 2023-08-13 10:17:06 -03:00
  • 3994eebedd chore(Directory.Packages.props): update FluentValidation and FluentValidation.DependencyInjectionExtensions package versions to 11.7.1 Jean Gatto 2023-08-13 10:16:45 -03:00
  • 6db81e1603 refactor(EventToQueryModelProfile.cs): change Create method to be generic and accept any CustomerBaseEvent Jean Gatto 2023-08-12 16:37:14 -03:00
  • 80b6ac776c chore(sonar-cloud.yml): update dotnet build and dotnet test commands to include --nologo flag Jean Gatto 2023-08-12 16:33:55 -03:00
  • a5f5ea303e chore(dotnet.yml): update dotnet build and test commands to include --nologo flag Jean Gatto 2023-08-12 16:33:49 -03:00
  • 95f1283791 chore(Shop.PublicApi.csproj): remove GenerateDocumentationFile element Jean Gatto 2023-08-12 16:21:26 -03:00
  • d57af5a2d8 chore(Shop.PublicApi.csproj): specify runtime identifiers for the project, compile application assemblies as ReadyToRun format, show warnings for missing dependencies in ReadyToRun Jean Gatto 2023-08-12 16:21:17 -03:00
  • 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 Jean Gatto 2023-08-12 16:20:43 -03:00
  • a1a96cfc22 chore(Dockerfile): update base image version to $sdkVersion Jean Gatto 2023-08-12 15:36:44 -03:00
  • 6e9ef4114e refactor(ServicesCollectionExtensions.cs): simplify Jean Gatto 2023-08-12 13:11:41 -03:00
  • 415a3f849a refactor(EfSqliteFixture.cs): simplify Dispose method implementation Jean Gatto 2023-08-12 09:22:20 -03:00
  • babe7e27b3 chore(BaseWriteOnlyRepository.cs): remove unnecessary line break in Dispose method Jean Gatto 2023-08-12 09:21:54 -03:00
  • deb686bb30 refactor(EventStoreRepository.cs): remove unnecessary line break and simplify Dispose method implementation Jean Gatto 2023-08-12 09:21:34 -03:00
  • aae2a841ce refactor(UnitOfWork.cs): remove unnecessary line break and update Dispose method implementation Jean Gatto 2023-08-12 09:19:56 -03:00
  • e68698b6c5 chore(Email.cs): remove unnecessary comment and newline Jean Gatto 2023-08-12 09:19:46 -03:00
  • ab2903afac chore(Directory.Packages.props): update FluentValidation and FluentValidation.DependencyInjectionExtensions package versions to 11.7.0 Jean Gatto 2023-08-11 19:17:28 -03:00
  • 04c96aaf4e chore(Directory.Packages.props): update MongoDB.Bson and MongoDB.Driver package versions to 2.21.0 Jean Gatto 2023-08-11 08:09:32 -03:00
  • 11c8141835 fix(RegexPatterns.cs): fix email regex pattern to support special characters in local part Jean Gatto 2023-08-10 20:31:05 -03:00
  • 45df172418 chore(Directory.Build.props): remove NSubstitute.Analyzers.CSharp package reference Jean Gatto 2023-08-09 22:01:17 -03:00
  • d1c276ac3e chore(Shop.UnitTests.csproj): add NSubstitute.Analyzers.CSharp package reference Jean Gatto 2023-08-09 22:01:09 -03:00
  • 4fd77915df Update global.json Jean Francisco Flores Gatto 2023-08-09 18:56:33 -03:00
  • 6257fbfef5 chore(CreateCustomerCommandHandlerTests.cs): replace Moq with NSubstitute for mocking dependencies fix(CreateCustomerCommandHandlerTests.cs): replace Mock.Of with Substitute.For for mocking dependencies Jean Gatto 2023-08-09 18:23:03 -03:00
  • cb3bff4b4e chore(Shop.UnitTests.csproj): remove Moq package reference and add NSubstitute package reference Jean Gatto 2023-08-09 18:22:50 -03:00
  • 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 Jean Gatto 2023-08-09 18:22:43 -03:00
  • 0bfd6ab187 chore(Directory.Build.props): add NSubstitute.Analyzers.CSharp package reference Jean Gatto 2023-08-09 18:22:35 -03:00
  • cb4ada044c chore(Directory.Packages.props): update Moq package version from 4.20.1 to 4.20.2 Jean Gatto 2023-08-09 08:25:47 -03:00
  • ca94078c0a chore(Dockerfile): add support for passing configuration argument during build and publish stages Jean Gatto 2023-08-08 18:59:29 -03:00
  • 651bf77fd7 feat(MiddlewareExtensions.cs): add MiddlewareExtensions class with UseCorrelationId and UseErrorHandling methods Jean Gatto 2023-08-08 16:58:05 -03:00
  • 6508bff007 feat(ApiResponse.cs): add ApiResponse class and ApiResponse<T> generic class for handling API responses Jean Gatto 2023-08-08 16:56:15 -03:00
  • d32059a856 chore(ApiResponseT.cs): remove ApiResponseT.cs file Jean Gatto 2023-08-08 16:56:06 -03:00
  • 26109148bf chore(global.json): update sdk version from 7.0.306 to 7.0.400 Jean Gatto 2023-08-08 15:59:22 -03:00
  • 4111857f40 chore(ICorrelationIdGenerator.cs): add XML documentation for ICorrelationIdGenerator interface and its methods Jean Gatto 2023-08-08 15:59:16 -03:00
  • 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 Jean Gatto 2023-08-08 14:44:06 -03:00
  • 584cd587b4 chore(Directory.Packages.props): update Moq package version from 4.18.4 to 4.20.1 Jean Gatto 2023-08-08 09:27:15 -03:00
  • de868fe771 refactor(ErrorHandlingMiddleware.cs): extract ApiResponseJson variable for better code readability Jean Gatto 2023-08-07 20:01:13 -03:00
  • 2b8d9da033 feat(ErrorHandlingMiddleware.cs): add ErrorHandlingMiddleware to handle exceptions and return appropriate response fix(Program.cs): add UseErrorHandling middleware to the application pipeline Jean Gatto 2023-08-07 13:45:59 -03:00
  • 53ac9e6cf1 chore(IWriteOnlyRepository.cs): remove trailing whitespace and add newline at end of file Jean Gatto 2023-08-07 13:45:49 -03:00
  • 1eb85b5d6a fix(EventStore.cs): add newline at the end of the file Jean Gatto 2023-08-07 13:45:44 -03:00
  • 1a710e1221 chore(BaseEvent.cs): remove trailing whitespace at the end of the file Jean Gatto 2023-08-07 13:45:38 -03:00
  • abbcb961b4 chore(Customer.cs): add XML documentation for default constructor Jean Gatto 2023-08-07 11:21:08 -03:00
  • c5981294f3 chore(IWriteOnlyRepository.cs): add XML documentation comments to interface and methods Jean Gatto 2023-08-07 11:20:27 -03:00
  • db7b032e2b chore(EventStore.cs): add comments and improve code readability Jean Gatto 2023-08-07 11:20:18 -03:00
  • f33144fe01 chore(BaseEvent.cs): add comments and improve code readability Jean Gatto 2023-08-07 11:20:10 -03:00
  • 2aa3f6f7da chore(BaseEntity.cs): add XML documentation for constructors Jean Gatto 2023-08-07 11:20:00 -03:00
  • 1aff777cd6 feat(Shop.Query): add IReadDbMapping interface for reading database mappings docs(Shop.Query): add summary and method documentation for IReadDbMapping interface Jean Gatto 2023-08-07 11:13:46 -03:00
  • 1d2bb17b5b chore(IQueryModel.cs): add XML documentation for IQueryModel interface Jean Gatto 2023-08-07 11:13:38 -03:00
  • b5b1105f22 chore(BaseQueryModel.cs): delete BaseQueryModel.cs file Jean Gatto 2023-08-07 11:10:30 -03:00
  • ba5aeffcee refactor(CustomerQueryModel.cs): implement IQueryModel interface and add constructor for CustomerQueryModel feat(CustomerQueryModel.cs): add Id property to CustomerQueryModel Jean Gatto 2023-08-07 11:10:19 -03:00
  • be99f4f26d chore(EventToQueryModelProfile.cs): fix indentation in CreateMap method call Jean Gatto 2023-08-07 11:10:00 -03:00
  • 64d8826e65 refactor(EventToQueryModelProfile.cs): refactor mapping configuration for Customer events in EventToQueryModelProfile Jean Gatto 2023-08-07 11:09:46 -03:00
  • ca9d8570a3 chore(ServicesCollectionExtensions.cs): remove unused mapping configuration for BaseQueryModelMap class Jean Gatto 2023-08-07 11:09:00 -03:00
  • 00370892e8 chore(CustomerMap.cs): add required validation for Id and FirstName properties in CustomerMap configuration Jean Gatto 2023-08-07 11:08:42 -03:00
  • 99e6f17b09 chore(BaseQueryModelMap.cs): remove BaseQueryModelMap.cs file Jean Gatto 2023-08-07 11:08:24 -03:00
  • 3f2aa853c0 chore(Dockerfile): remove non-root user creation and permission changes fix(Dockerfile): fix base image reference in publish stage Jean Gatto 2023-08-07 11:07:58 -03:00
  • 87554e5e5c refactor(BaseEntity.cs): simplify BaseEntity class implementation - Remove redundant newline at the end of the file - Remove unnecessary constructor overload - Update Id property to have a private setter - Remove unnecessary method body braces Jean Gatto 2023-08-07 11:07:42 -03:00
  • 6c4b1c9c20 chore(Shop.sln): add requests.http file to Solution Items Jean Gatto 2023-08-07 11:07:18 -03:00
  • ae1d22f342 feat(requests.http): add requests.http file with getCustomers request Jean Gatto 2023-08-07 11:07:09 -03:00
  • 831eb52f1b chore(Directory.Packages.props): update xunit.categories package version to 2.0.8 Jean Gatto 2023-08-06 18:27:56 -03:00
  • 3264b02aee refactor(CustomersController.cs): reformat constructor for better readability Jean Gatto 2023-08-05 17:29:23 -03:00
  • c6f0ca38e5 refactor(ResultExtensions.cs): improve formatting and readability of ToActionResult method Jean Gatto 2023-08-05 17:28:59 -03:00
  • 8c9b9bcbd2 fix(JsonExtensions.cs): add newline at the end of the file Jean Gatto 2023-08-05 17:28:17 -03:00
  • cedadc73c7 refactor(ResultExtensions.cs): update namespace import for ApiResponse and ApiErrorResponse models Jean Gatto 2023-08-05 17:28:01 -03:00
  • b89f9f0a73 refactor(CustomersController.cs): update import statement for Shop.PublicApi.Models to Shop.PublicApi.Models.Responses Jean Gatto 2023-08-05 17:27:42 -03:00
  • 8897345547 refactor(ServicesCollectionExtensions.cs): remove unused using statements and logging behavior Jean Gatto 2023-08-05 17:27:27 -03:00
  • 5b89713447 feat(Shop.PublicApi): add ApiResponse, ApiErrorResponse, and ApiResponseT classes Jean Gatto 2023-08-05 17:27:13 -03:00
  • 2d5dfa6b58 chore(ApiResponse.cs): delete ApiResponse.cs file Jean Gatto 2023-08-05 17:26:52 -03:00
  • 395beaed6a chore(ApiError.cs): delete ApiError.cs file Jean Gatto 2023-08-05 17:26:23 -03:00
  • 20e2f09eef chore(LoggingBehavior.cs): delete LoggingBehavior.cs file Jean Gatto 2023-08-05 17:26:15 -03:00
  • cc8bbd6ee6 feat(ServicesCollectionExtensions.cs): add MediatR and LoggingBehavior to command handlers Jean Gatto 2023-08-05 17:25:50 -03:00
  • 6257fd3b7b feat(LoggingBehavior.cs): add LoggingBehavior class to handle logging of commands and their execution time Jean Gatto 2023-08-05 17:25:39 -03:00
  • 546e4be9cd feat(JsonExtensions.cs): add method documentation Jean Gatto 2023-08-05 11:52:20 -03:00
  • 7e00d80341 Merge pull request #12 from jeangatto:feat/system_net_json_version Jean Francisco Flores Gatto 2023-08-05 11:49:27 -03:00
  • e600d02330 refactor(ServicesCollectionExtensions.cs): remove unused AddSwaggerGenNewtonsoftSupport method Jean Gatto 2023-08-05 11:47:32 -03:00
  • 92d4e39c39 chore(CustomersController.cs): add required attribute to Create, Update, Delete, and GetById methods' parameters Jean Gatto 2023-08-05 11:47:20 -03:00
  • 32b0129ab8 refactor(Program.cs): replace MvcNewtonsoftJsonOptions with JsonOptions for configuring JSON serialization chore(Program.cs): remove unused AddNewtonsoftJson method Jean Gatto 2023-08-05 11:47:13 -03:00
  • 0967c64975 chore(Shop.PublicApi.csproj): remove Swashbuckle.AspNetCore.Newtonsoft package reference Jean Gatto 2023-08-05 11:46:38 -03:00
  • 8af7bbfa6f refactor(JsonExtensions.cs): Update JsonExtensions class to use System.Text.Json instead of Newtonsoft.Json Jean Gatto 2023-08-05 11:46:30 -03:00
  • 37ad18b9a1 chore(Shop.Core.csproj): remove JsonNet.ContractResolvers package reference feat(Shop.Core.csproj): add System.Text.Json package reference Jean Gatto 2023-08-05 11:46:04 -03:00
  • 92f5f3c636 chore(Directory.Packages.props): remove JsonNet.ContractResolvers package version chore(Directory.Packages.props): remove Newtonsoft.Json package version chore(Directory.Packages.props): add System.Text.Json package version Jean Gatto 2023-08-05 11:45:49 -03:00
  • 111d347060 chore(Directory.Packages.props): update Microsoft.NET.Test.Sdk package version from 17.6.3 to 17.7.0 chore(Directory.Packages.props): update SonarAnalyzer.CSharp package version from 9.6.0.74858 to 9.7.0.75501 Jean Gatto 2023-08-05 11:13:29 -03:00
  • bebe1201ef chore(dotnet.yml): add DOTNET_SKIP_FIRST_TIME_EXPERIENCE environment variable with value true Jean Gatto 2023-08-05 10:54:26 -03:00
  • a3d3034476 chore(Directory.Packages.props): remove System.Net.NameResolution package version Jean Gatto 2023-08-05 10:54:19 -03:00
  • f1917b38e3 chore(Dockerfile): add DOTNET_SKIP_FIRST_TIME_EXPERIENCE environment variable Jean Gatto 2023-08-05 10:54:05 -03:00
  • d6d6178cab chore(launchSettings.json): update launchSettings.json to configure separate profiles for http and https Jean Gatto 2023-08-04 19:43:46 -03:00
  • 83894fa58c chore(dotnet.yml): disable .NET diagnostics in the build and test job Jean Gatto 2023-08-03 21:52:04 -03:00
  • 7392565a1e refactor(JsonExtensions.cs): remove unnecessary newlines and comments Jean Gatto 2023-08-03 13:51:48 -03:00
  • 767e990473 refactor(AssemblyExtensions.cs): rename variable 't' to 'type' for clarity and remove unnecessary comments Jean Gatto 2023-08-03 13:51:43 -03:00
  • a79d2165e8 chore(RegexPatterns.cs): refactor EmailIsValid regex pattern to use generated regex attribute Jean Gatto 2023-08-03 13:51:37 -03:00
  • 5d6c5e8b41 refactor(ServicesCollectionExtensions.cs): simplify AddOptionsWithValidation method by removing unnecessary line breaks and indentation Jean Gatto 2023-08-03 09:22:55 -03:00
  • e1d6a56b4c chore(ServicesCollectionExtensions.cs): remove unnecessary line breaks and fix indentation fix(ServicesCollectionExtensions.cs): fix URL formatting Jean Gatto 2023-08-03 09:20:13 -03:00