platformplatform / PlatformPlatform

Alpha state. A platform designed for building enterprise-grade, multi-tenant products using Azure, .NET, React, TypeScript, Infrastructure as Code, etc.
https://platformplatform.github.io
MIT License
258 stars 26 forks source link

Optimize tests for vertical slice architecture and fix dependency issues in Account Management API #570

Closed tjementum closed 2 months ago

tjementum commented 2 months ago

Summary & Motivation

Fix problem with starting Account Management API on Azure. To resolve dependency issues, the order of AddApiServices and AddStorage has been swapped.

Restructure namespaces in the AccountManagement.Tests project to align with the new vertical sliced architecture and centralize duplicated API assertion helpers from Account Management and Back Office into a static class in SharedKernel.Tests.

Several internal optimizations were made, such as making IAuditableEntity internal to restrict modifications of the ModifiedAt property to logic within the Shared Kernel, and changing Telemetry Event properties to use Dictionary<string, object> for simpler event definitions. Other technical improvements include renaming and reorganizing various elements for consistency and clarity, removing unused methods to simplify database migrations, and centralizing JsonSerializerOptions in SharedKernel for consistent serialization across the solution.

Checklist

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
11 New issues
0 Accepted issues

Measures
0 Security Hotspots
64.3% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud