Skip to content

Commit 25be63e

Browse files
committed
Introduced global using directives for the OnTopic.TestDoubles library
The two most commonly referenced namespaces in this project are: - `System.Diagnostics.CodeAnalysis` - `OnTopic.Metadata` These impact 8-10 files each, which represent the majority of files in this project. These have been added as `global using` directives (in the `AssemblyInfo`) and removed from the individual files.
1 parent 1dcb21b commit 25be63e

9 files changed

Lines changed: 10 additions & 16 deletions

OnTopic.TestDoubles/DummyTopicMappingService.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
| Client Ignia, LLC
44
| Project Topics Library
55
\=============================================================================================================================*/
6-
using System.Diagnostics.CodeAnalysis;
76
using OnTopic.Mapping;
87
using OnTopic.Mapping.Annotations;
98

OnTopic.TestDoubles/DummyTopicRepository.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
| Client Ignia, LLC
44
| Project Topics Library
55
\=============================================================================================================================*/
6-
using System.Diagnostics.CodeAnalysis;
7-
using OnTopic.Metadata;
86
using OnTopic.Repositories;
97

108
namespace OnTopic.TestDoubles {

OnTopic.TestDoubles/Metadata/BooleanAttributeDescriptor.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
| Client Ignia, LLC
44
| Project Topics Library
55
\=============================================================================================================================*/
6-
using System.Diagnostics.CodeAnalysis;
7-
using OnTopic.Metadata;
86

97
namespace OnTopic.TestDoubles.Metadata {
108

OnTopic.TestDoubles/Metadata/NestedTopicListAttributeDescriptor.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
| Client Ignia, LLC
44
| Project Topics Library
55
\=============================================================================================================================*/
6-
using System.Diagnostics.CodeAnalysis;
7-
using OnTopic.Metadata;
86

97
namespace OnTopic.TestDoubles.Metadata {
108

OnTopic.TestDoubles/Metadata/RelationshipAttributeDescriptor.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
| Client Ignia, LLC
44
| Project Topics Library
55
\=============================================================================================================================*/
6-
using System.Diagnostics.CodeAnalysis;
7-
using OnTopic.Metadata;
86

97
namespace OnTopic.TestDoubles.Metadata {
108

OnTopic.TestDoubles/Metadata/TextAttributeDescriptor.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
| Client Ignia, LLC
44
| Project Topics Library
55
\=============================================================================================================================*/
6-
using System.Diagnostics.CodeAnalysis;
7-
using OnTopic.Metadata;
86

97
namespace OnTopic.TestDoubles.Metadata {
108

OnTopic.TestDoubles/Metadata/TopicReferenceAttributeDescriptor.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
| Client Ignia, LLC
44
| Project Topics Library
55
\=============================================================================================================================*/
6-
using System.Diagnostics.CodeAnalysis;
7-
using OnTopic.Metadata;
86

97
namespace OnTopic.TestDoubles.Metadata {
108

OnTopic.TestDoubles/Properties/AssemblyInfo.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@
33
| Client Ignia, LLC
44
| Project Topics Library
55
\=============================================================================================================================*/
6-
using System.Diagnostics.CodeAnalysis;
6+
7+
/*==============================================================================================================================
8+
| USING DIRECTIVES (LOCAL)
9+
\-----------------------------------------------------------------------------------------------------------------------------*/
10+
global using System.Diagnostics.CodeAnalysis;
11+
global using OnTopic.Metadata;
12+
13+
/*==============================================================================================================================
14+
| USING DIRECTIVES (LOCAL)
15+
\-----------------------------------------------------------------------------------------------------------------------------*/
716
using System.Runtime.InteropServices;
817

918
/*==============================================================================================================================

OnTopic.TestDoubles/StubTopicRepository.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
| Client Ignia, LLC
44
| Project Topics Library
55
\=============================================================================================================================*/
6-
using System.Diagnostics.CodeAnalysis;
76
using System.Globalization;
87
using OnTopic.Attributes;
98
using OnTopic.Internal.Diagnostics;
10-
using OnTopic.Metadata;
119
using OnTopic.Querying;
1210
using OnTopic.Repositories;
1311

0 commit comments

Comments
 (0)