adds unit tests to cover 80%
This commit is contained in:
@@ -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 { }
|
||||
Reference in New Issue
Block a user