From b7f7224eb4bb521722068add61a3cfedd0cdfc90 Mon Sep 17 00:00:00 2001 From: Piotr Kowalski Date: Mon, 6 Sep 2021 20:13:44 +0200 Subject: [PATCH] Exclude `DatabaseHealthCheck` from code coverage tests --- .../DatabaseHealthCheck.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rinkudesu.Services.Links/Rinkudesu.Services.Links.HealthChecks/DatabaseHealthCheck.cs b/Rinkudesu.Services.Links/Rinkudesu.Services.Links.HealthChecks/DatabaseHealthCheck.cs index e84cad4..96e8c42 100644 --- a/Rinkudesu.Services.Links/Rinkudesu.Services.Links.HealthChecks/DatabaseHealthCheck.cs +++ b/Rinkudesu.Services.Links/Rinkudesu.Services.Links.HealthChecks/DatabaseHealthCheck.cs @@ -1,4 +1,5 @@ -using System.Linq; +using System.Diagnostics.CodeAnalysis; +using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; @@ -7,6 +8,7 @@ namespace Rinkudesu.Services.Links.HealthChecks { + [ExcludeFromCodeCoverage] public class DatabaseHealthCheck : IHealthCheck { private readonly LinkDbContext _context;