adds unit tests to cover 80%

This commit is contained in:
2026-06-26 00:27:27 +02:00
parent b84e2f8e3e
commit 0e01ca1e1c
69 changed files with 90596 additions and 46 deletions
@@ -15,8 +15,11 @@ using SlpModularCms.Api.Infrastructure;
using System.Text;
using System.Threading.RateLimiting;
using System.Diagnostics.CodeAnalysis;
namespace SlpModularCms.Api.Extensions;
[ExcludeFromCodeCoverage]
public static class ServiceCollectionExtensions
{
public static IServiceCollection AddCoreInfrastructure(this IServiceCollection services, IConfiguration configuration)
@@ -0,0 +1,6 @@
using System.Diagnostics.CodeAnalysis;
// Excludes the top-level-statement Program class from code coverage.
// Program.cs is application bootstrapping and cannot be meaningfully unit tested.
[ExcludeFromCodeCoverage]
public partial class Program { }