Skip to content

Commit 15070aa

Browse files
committed
Introduced global using directives for the OnTopic.Tests library
The most commonly referenced namespaces in this project are: - `System.Collections.ObjectModel` - `System.Diagnostics.CodeAnalysis` - `OnTopic.Internal.Diagnostics` - `OnTopic.Mapping.Annotations` - `OnTopic.ViewModels` - `Xunit` These impacted 17-32 files each, with the latter representing nearly half of the files in this project. These have been added as `global using` directives (in the `AssemblyInfo`) and removed from the individual files.
1 parent 25be63e commit 15070aa

73 files changed

Lines changed: 14 additions & 137 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

OnTopic.Tests/AttributeCollectionTest.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@
44
| Project Topics Library
55
\=============================================================================================================================*/
66
using System.Collections;
7-
using System.Diagnostics.CodeAnalysis;
87
using System.Globalization;
98
using OnTopic.Attributes;
109
using OnTopic.Collections.Specialized;
11-
using OnTopic.Internal.Diagnostics;
1210
using OnTopic.Tests.Entities;
13-
using Xunit;
1411

1512
namespace OnTopic.Tests {
1613

OnTopic.Tests/AttributeValueConverterTest.cs

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

108
namespace OnTopic.Tests {
119

OnTopic.Tests/BindingModels/ContentTypeDescriptorTopicBindingModel.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.Collections.ObjectModel;
76
using OnTopic.ViewModels.BindingModels;
87

98
namespace OnTopic.Tests.BindingModels {

OnTopic.Tests/BindingModels/DisabledAttributeTopicBindingModel.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 OnTopic.Mapping.Annotations;
76

87
namespace OnTopic.Tests.BindingModels {
98

OnTopic.Tests/BindingModels/InvalidChildrenTopicBindingModel.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.Collections.ObjectModel;
76

87
namespace OnTopic.Tests.BindingModels {
98

OnTopic.Tests/BindingModels/InvalidRelationshipBaseTypeTopicBindingModel.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.Collections.ObjectModel;
76
using OnTopic.Models;
87
using OnTopic.Tests.ViewModels;
98

OnTopic.Tests/BindingModels/InvalidRelationshipTypeTopicBindingModel.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.Collections.ObjectModel;
7-
using OnTopic.Mapping.Annotations;
86
using OnTopic.ViewModels.BindingModels;
97

108
namespace OnTopic.Tests.BindingModels {

OnTopic.Tests/BindingModels/MapToParentTopicBindingModel.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 OnTopic.Mapping.Annotations;
76

87
namespace OnTopic.Tests.BindingModels {
98

OnTopic.Tests/BindingModels/PageTopicBindingModel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
\=============================================================================================================================*/
66
using System.ComponentModel;
77
using System.ComponentModel.DataAnnotations;
8-
using OnTopic.Mapping.Annotations;
98

109
namespace OnTopic.Tests.BindingModels {
1110

OnTopic.Tests/ContentTypeDescriptorTest.cs

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

108
namespace OnTopic.Tests {
119

0 commit comments

Comments
 (0)