From d08afcccc55550378530667c369e822312ee28a1 Mon Sep 17 00:00:00 2001 From: David Walker Date: Mon, 13 Apr 2020 10:35:12 +0100 Subject: [PATCH] Code coverage improvements --- src/FlightRecorder.Entities/Db/Aircraft.cs | 4 +++- src/FlightRecorder.Entities/Db/Airline.cs | 4 +++- src/FlightRecorder.Entities/Db/Flight.cs | 4 +++- src/FlightRecorder.Entities/Db/Location.cs | 4 +++- src/FlightRecorder.Entities/Db/Manufacturer.cs | 4 +++- src/FlightRecorder.Entities/Db/Model.cs | 4 +++- src/FlightRecorder.Entities/Db/Sighting.cs | 4 +++- 7 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src/FlightRecorder.Entities/Db/Aircraft.cs b/src/FlightRecorder.Entities/Db/Aircraft.cs index 87dce08..8ef6b08 100644 --- a/src/FlightRecorder.Entities/Db/Aircraft.cs +++ b/src/FlightRecorder.Entities/Db/Aircraft.cs @@ -1,8 +1,10 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.ComponentModel.DataAnnotations; +using System.Diagnostics.CodeAnalysis; namespace FlightRecorder.Entities.Db { + [ExcludeFromCodeCoverage] public partial class Aircraft { public Aircraft() diff --git a/src/FlightRecorder.Entities/Db/Airline.cs b/src/FlightRecorder.Entities/Db/Airline.cs index 3770901..e2ceeb9 100644 --- a/src/FlightRecorder.Entities/Db/Airline.cs +++ b/src/FlightRecorder.Entities/Db/Airline.cs @@ -1,8 +1,10 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.ComponentModel.DataAnnotations; +using System.Diagnostics.CodeAnalysis; namespace FlightRecorder.Entities.Db { + [ExcludeFromCodeCoverage] public partial class Airline { public Airline() diff --git a/src/FlightRecorder.Entities/Db/Flight.cs b/src/FlightRecorder.Entities/Db/Flight.cs index aec42ea..00748dd 100644 --- a/src/FlightRecorder.Entities/Db/Flight.cs +++ b/src/FlightRecorder.Entities/Db/Flight.cs @@ -1,8 +1,10 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.ComponentModel.DataAnnotations; +using System.Diagnostics.CodeAnalysis; namespace FlightRecorder.Entities.Db { + [ExcludeFromCodeCoverage] public partial class Flight { public Flight() diff --git a/src/FlightRecorder.Entities/Db/Location.cs b/src/FlightRecorder.Entities/Db/Location.cs index 92254c3..50139c2 100644 --- a/src/FlightRecorder.Entities/Db/Location.cs +++ b/src/FlightRecorder.Entities/Db/Location.cs @@ -1,8 +1,10 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.ComponentModel.DataAnnotations; +using System.Diagnostics.CodeAnalysis; namespace FlightRecorder.Entities.Db { + [ExcludeFromCodeCoverage] public partial class Location { public Location() diff --git a/src/FlightRecorder.Entities/Db/Manufacturer.cs b/src/FlightRecorder.Entities/Db/Manufacturer.cs index 77e7d00..8b594cf 100644 --- a/src/FlightRecorder.Entities/Db/Manufacturer.cs +++ b/src/FlightRecorder.Entities/Db/Manufacturer.cs @@ -1,8 +1,10 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.ComponentModel.DataAnnotations; +using System.Diagnostics.CodeAnalysis; namespace FlightRecorder.Entities.Db { + [ExcludeFromCodeCoverage] public partial class Manufacturer { public Manufacturer() diff --git a/src/FlightRecorder.Entities/Db/Model.cs b/src/FlightRecorder.Entities/Db/Model.cs index 324c231..895a460 100644 --- a/src/FlightRecorder.Entities/Db/Model.cs +++ b/src/FlightRecorder.Entities/Db/Model.cs @@ -1,8 +1,10 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.ComponentModel.DataAnnotations; +using System.Diagnostics.CodeAnalysis; namespace FlightRecorder.Entities.Db { + [ExcludeFromCodeCoverage] public partial class Model { public Model() diff --git a/src/FlightRecorder.Entities/Db/Sighting.cs b/src/FlightRecorder.Entities/Db/Sighting.cs index 4f27c7a..e737725 100644 --- a/src/FlightRecorder.Entities/Db/Sighting.cs +++ b/src/FlightRecorder.Entities/Db/Sighting.cs @@ -1,9 +1,11 @@ -using System; +using System; using System.ComponentModel.DataAnnotations; +using System.Diagnostics.CodeAnalysis; using FlightRecorder.Entities.DataExchange; namespace FlightRecorder.Entities.Db { + [ExcludeFromCodeCoverage] public partial class Sighting { [Key]