From 8c8af4ca83ad533847e3188cbeec83e8c1c83bc0 Mon Sep 17 00:00:00 2001 From: Dinesh Solanki <15937452+DineshSolanki@users.noreply.github.com> Date: Thu, 12 Sep 2024 22:47:07 +0530 Subject: [PATCH] refactor: global usings --- DeviantArt.Net/Api/BrowseClient.cs | 4 +--- DeviantArt.Net/Api/Client.cs | 2 -- DeviantArt.Net/Api/CollectionClient.cs | 6 +----- DeviantArt.Net/Api/CommentsClient.cs | 4 +--- DeviantArt.Net/Api/DataClient.cs | 4 +--- DeviantArt.Net/Api/DeviationClient.cs | 5 +---- DeviantArt.Net/Api/GalleryClient.cs | 6 +----- DeviantArt.Net/Api/Handler/RetryHandler.cs | 4 +--- DeviantArt.Net/Api/IBrowseApi.cs | 4 +--- DeviantArt.Net/Api/ICollectionApi.cs | 5 +---- DeviantArt.Net/Api/ICommentsApi.cs | 4 +--- DeviantArt.Net/Api/IDataApi.cs | 4 +--- DeviantArt.Net/Api/IDeviationApi.cs | 4 +--- DeviantArt.Net/Api/IGalleryApi.cs | 5 +---- DeviantArt.Net/Api/IMessageApi.cs | 4 +--- DeviantArt.Net/Api/IUserApi.cs | 5 +---- DeviantArt.Net/Api/MessageClient.cs | 4 +--- DeviantArt.Net/Api/UserClient.cs | 6 +----- DeviantArt.Net/Exceptions/DeviantArtApiExceptions.cs | 1 - DeviantArt.Net/GlobalUsings.cs | 7 +++++++ DeviantArt.Net/Models/BrowseResponse.cs | 4 +--- DeviantArt.Net/Models/CommentsPage.cs | 4 +--- DeviantArt.Net/Models/Deviation/FavouritedBy.cs | 4 +--- DeviantArt.Net/Models/Deviation/Metadata.cs | 4 +--- DeviantArt.Net/Models/Deviation/journalCreationRequest.cs | 5 +---- DeviantArt.Net/Models/Message/Message.cs | 5 +---- DeviantArt.Net/Models/TagNamesResponse.cs | 4 +--- DeviantArt.Net/Models/TopicsResponse.cs | 4 +--- DeviantArt.Net/Models/User/Folder.cs | 4 +--- DeviantArt.Net/Models/User/Friend.cs | 4 +--- DeviantArt.Net/Models/User/ProfileUpdateRequest.cs | 4 +--- DeviantArt.Net/Models/User/User.cs | 4 +--- DeviantArt.Net/Models/User/UserProfile.cs | 4 +--- DeviantArt.Net/Modules/Extension.cs | 1 - DeviantArt.Net/Modules/TokenStore/JsonTokenStore.cs | 4 +--- .../Util/Formatters/DateTimeOffsetNullableConverter.cs | 1 - .../Modules/Util/Formatters/UnixTimeStampConverter.cs | 4 +--- DeviantArt.NetTest/ApiClientTests.cs | 4 +--- DeviantArt.NetTest/CollectionTests.cs | 4 +--- DeviantArt.NetTest/DeviationTests.cs | 4 +--- DeviantArt.NetTest/GalleryTests.cs | 4 +--- DeviantArt.NetTest/GlobalUsings.cs | 6 ++++++ DeviantArt.NetTest/MessageClientTests.cs | 5 +---- DeviantArt.NetTest/UserTests.cs | 5 +---- DeviantArt.NetTest/Utils/Ids.cs | 4 +--- 45 files changed, 52 insertions(+), 136 deletions(-) diff --git a/DeviantArt.Net/Api/BrowseClient.cs b/DeviantArt.Net/Api/BrowseClient.cs index 1d0b279..d1a9679 100644 --- a/DeviantArt.Net/Api/BrowseClient.cs +++ b/DeviantArt.Net/Api/BrowseClient.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Models.Deviation; - -namespace DeviantArt.Net.Api; +namespace DeviantArt.Net.Api; public partial class Client { diff --git a/DeviantArt.Net/Api/Client.cs b/DeviantArt.Net/Api/Client.cs index 26fa2d8..a1f92c3 100644 --- a/DeviantArt.Net/Api/Client.cs +++ b/DeviantArt.Net/Api/Client.cs @@ -1,6 +1,4 @@ using DeviantArt.Net.Api.Handler; -using DeviantArt.Net.Modules; -using DeviantArt.Net.Modules.Util.Formatters; namespace DeviantArt.Net.Api; diff --git a/DeviantArt.Net/Api/CollectionClient.cs b/DeviantArt.Net/Api/CollectionClient.cs index 140ec09..98651ed 100644 --- a/DeviantArt.Net/Api/CollectionClient.cs +++ b/DeviantArt.Net/Api/CollectionClient.cs @@ -1,8 +1,4 @@ -using DeviantArt.Net.Models.Deviation; -using DeviantArt.Net.Models.User; -using DeviantArt.Net.Modules; - -namespace DeviantArt.Net.Api; +namespace DeviantArt.Net.Api; public partial class Client { diff --git a/DeviantArt.Net/Api/CommentsClient.cs b/DeviantArt.Net/Api/CommentsClient.cs index bdee4a3..e343b4f 100644 --- a/DeviantArt.Net/Api/CommentsClient.cs +++ b/DeviantArt.Net/Api/CommentsClient.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Models.Message; - -namespace DeviantArt.Net.Api; +namespace DeviantArt.Net.Api; public partial class Client { diff --git a/DeviantArt.Net/Api/DataClient.cs b/DeviantArt.Net/Api/DataClient.cs index 3dfacb2..4ed0b75 100644 --- a/DeviantArt.Net/Api/DataClient.cs +++ b/DeviantArt.Net/Api/DataClient.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Models.Data; - -namespace DeviantArt.Net.Api; +namespace DeviantArt.Net.Api; public partial class Client { diff --git a/DeviantArt.Net/Api/DeviationClient.cs b/DeviantArt.Net/Api/DeviationClient.cs index f2213ac..0d2d409 100644 --- a/DeviantArt.Net/Api/DeviationClient.cs +++ b/DeviantArt.Net/Api/DeviationClient.cs @@ -1,7 +1,4 @@ -using DeviantArt.Net.Models.Deviation; -using DeviantArt.Net.Modules; - -namespace DeviantArt.Net.Api; +namespace DeviantArt.Net.Api; /// /// Client class for interacting with DeviantArt API to manage deviations, journals, and literature. diff --git a/DeviantArt.Net/Api/GalleryClient.cs b/DeviantArt.Net/Api/GalleryClient.cs index de8384b..a789025 100644 --- a/DeviantArt.Net/Api/GalleryClient.cs +++ b/DeviantArt.Net/Api/GalleryClient.cs @@ -1,8 +1,4 @@ -using DeviantArt.Net.Models.Deviation; -using DeviantArt.Net.Models.User; -using DeviantArt.Net.Modules; - -namespace DeviantArt.Net.Api; +namespace DeviantArt.Net.Api; /// /// Client class for interacting with DeviantArt gallery-related API endpoints. diff --git a/DeviantArt.Net/Api/Handler/RetryHandler.cs b/DeviantArt.Net/Api/Handler/RetryHandler.cs index 1a7706c..f353a2a 100644 --- a/DeviantArt.Net/Api/Handler/RetryHandler.cs +++ b/DeviantArt.Net/Api/Handler/RetryHandler.cs @@ -1,6 +1,4 @@ -using System.Text.Json; - -namespace DeviantArt.Net.Api.Handler; +namespace DeviantArt.Net.Api.Handler; internal class RetryHandler(HttpMessageHandler innerHandler) : DelegatingHandler(innerHandler) { diff --git a/DeviantArt.Net/Api/IBrowseApi.cs b/DeviantArt.Net/Api/IBrowseApi.cs index 96892c1..937faae 100644 --- a/DeviantArt.Net/Api/IBrowseApi.cs +++ b/DeviantArt.Net/Api/IBrowseApi.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Models.Deviation; - -namespace DeviantArt.Net.Api; +namespace DeviantArt.Net.Api; internal partial interface IDeviantArtApi { diff --git a/DeviantArt.Net/Api/ICollectionApi.cs b/DeviantArt.Net/Api/ICollectionApi.cs index bfa27aa..dd8ba08 100644 --- a/DeviantArt.Net/Api/ICollectionApi.cs +++ b/DeviantArt.Net/Api/ICollectionApi.cs @@ -1,7 +1,4 @@ -using DeviantArt.Net.Models.Deviation; -using DeviantArt.Net.Models.User; - -namespace DeviantArt.Net.Api; +namespace DeviantArt.Net.Api; internal partial interface IDeviantArtApi { diff --git a/DeviantArt.Net/Api/ICommentsApi.cs b/DeviantArt.Net/Api/ICommentsApi.cs index 3201cdc..ff8a8b1 100644 --- a/DeviantArt.Net/Api/ICommentsApi.cs +++ b/DeviantArt.Net/Api/ICommentsApi.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Models.Message; - -namespace DeviantArt.Net.Api; +namespace DeviantArt.Net.Api; internal partial interface IDeviantArtApi { diff --git a/DeviantArt.Net/Api/IDataApi.cs b/DeviantArt.Net/Api/IDataApi.cs index ee87c13..1251d59 100644 --- a/DeviantArt.Net/Api/IDataApi.cs +++ b/DeviantArt.Net/Api/IDataApi.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Models.Data; - -namespace DeviantArt.Net.Api; +namespace DeviantArt.Net.Api; internal partial interface IDeviantArtApi { diff --git a/DeviantArt.Net/Api/IDeviationApi.cs b/DeviantArt.Net/Api/IDeviationApi.cs index 203a9e3..3124041 100644 --- a/DeviantArt.Net/Api/IDeviationApi.cs +++ b/DeviantArt.Net/Api/IDeviationApi.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Models.Deviation; - -namespace DeviantArt.Net.Api; +namespace DeviantArt.Net.Api; internal partial interface IDeviantArtApi { diff --git a/DeviantArt.Net/Api/IGalleryApi.cs b/DeviantArt.Net/Api/IGalleryApi.cs index e0088c1..b6c7bab 100644 --- a/DeviantArt.Net/Api/IGalleryApi.cs +++ b/DeviantArt.Net/Api/IGalleryApi.cs @@ -1,7 +1,4 @@ -using DeviantArt.Net.Models.Deviation; -using DeviantArt.Net.Models.User; - -namespace DeviantArt.Net.Api; +namespace DeviantArt.Net.Api; internal partial interface IDeviantArtApi { diff --git a/DeviantArt.Net/Api/IMessageApi.cs b/DeviantArt.Net/Api/IMessageApi.cs index 3a7400d..01821f7 100644 --- a/DeviantArt.Net/Api/IMessageApi.cs +++ b/DeviantArt.Net/Api/IMessageApi.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Models.Message; - -namespace DeviantArt.Net.Api; +namespace DeviantArt.Net.Api; internal partial interface IDeviantArtApi { diff --git a/DeviantArt.Net/Api/IUserApi.cs b/DeviantArt.Net/Api/IUserApi.cs index cbb9481..9d92878 100644 --- a/DeviantArt.Net/Api/IUserApi.cs +++ b/DeviantArt.Net/Api/IUserApi.cs @@ -1,7 +1,4 @@ -using DeviantArt.Net.Models.Deviation; -using DeviantArt.Net.Models.User; - -namespace DeviantArt.Net.Api; +namespace DeviantArt.Net.Api; internal partial interface IDeviantArtApi { diff --git a/DeviantArt.Net/Api/MessageClient.cs b/DeviantArt.Net/Api/MessageClient.cs index 68a1a94..3efa581 100644 --- a/DeviantArt.Net/Api/MessageClient.cs +++ b/DeviantArt.Net/Api/MessageClient.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Models.Message; - -namespace DeviantArt.Net.Api; +namespace DeviantArt.Net.Api; public partial class Client { diff --git a/DeviantArt.Net/Api/UserClient.cs b/DeviantArt.Net/Api/UserClient.cs index 8eeb8f3..9bdd456 100644 --- a/DeviantArt.Net/Api/UserClient.cs +++ b/DeviantArt.Net/Api/UserClient.cs @@ -1,8 +1,4 @@ -using DeviantArt.Net.Models.Deviation; -using DeviantArt.Net.Models.User; -using DeviantArt.Net.Modules; - -namespace DeviantArt.Net.Api; +namespace DeviantArt.Net.Api; public partial class Client { diff --git a/DeviantArt.Net/Exceptions/DeviantArtApiExceptions.cs b/DeviantArt.Net/Exceptions/DeviantArtApiExceptions.cs index deb9621..3bf057b 100644 --- a/DeviantArt.Net/Exceptions/DeviantArtApiExceptions.cs +++ b/DeviantArt.Net/Exceptions/DeviantArtApiExceptions.cs @@ -1,5 +1,4 @@ using System; -using System.Text.Json; namespace DeviantArt.Net.Exceptions; diff --git a/DeviantArt.Net/GlobalUsings.cs b/DeviantArt.Net/GlobalUsings.cs index 1625b9c..fa51f08 100644 --- a/DeviantArt.Net/GlobalUsings.cs +++ b/DeviantArt.Net/GlobalUsings.cs @@ -3,9 +3,16 @@ global using System.ComponentModel; global using System.Net; global using System.Runtime.Serialization; +global using System.Text.Json; global using System.Text.Json.Serialization; global using DeviantArt.Net.Exceptions; global using DeviantArt.Net.Models; +global using DeviantArt.Net.Models.Data; +global using DeviantArt.Net.Models.Deviation; +global using DeviantArt.Net.Models.Message; +global using DeviantArt.Net.Models.User; +global using DeviantArt.Net.Modules; global using DeviantArt.Net.Modules.Client; global using DeviantArt.Net.Modules.TokenStore; +global using DeviantArt.Net.Modules.Util.Formatters; global using Refit; \ No newline at end of file diff --git a/DeviantArt.Net/Models/BrowseResponse.cs b/DeviantArt.Net/Models/BrowseResponse.cs index 4d1a8e2..924c701 100644 --- a/DeviantArt.Net/Models/BrowseResponse.cs +++ b/DeviantArt.Net/Models/BrowseResponse.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Models.Deviation; - -namespace DeviantArt.Net.Models; +namespace DeviantArt.Net.Models; public class BrowseResponse : PaginatedBase { diff --git a/DeviantArt.Net/Models/CommentsPage.cs b/DeviantArt.Net/Models/CommentsPage.cs index 4cbc696..19eb5bd 100644 --- a/DeviantArt.Net/Models/CommentsPage.cs +++ b/DeviantArt.Net/Models/CommentsPage.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Models.Message; - -namespace DeviantArt.Net.Models; +namespace DeviantArt.Net.Models; public class CommentsPage : PageBase { diff --git a/DeviantArt.Net/Models/Deviation/FavouritedBy.cs b/DeviantArt.Net/Models/Deviation/FavouritedBy.cs index 94f020a..b7b68c0 100644 --- a/DeviantArt.Net/Models/Deviation/FavouritedBy.cs +++ b/DeviantArt.Net/Models/Deviation/FavouritedBy.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Modules.Util.Formatters; - -namespace DeviantArt.Net.Models.Deviation; +namespace DeviantArt.Net.Models.Deviation; public class FavouritedBy { diff --git a/DeviantArt.Net/Models/Deviation/Metadata.cs b/DeviantArt.Net/Models/Deviation/Metadata.cs index caca47b..3800d5c 100644 --- a/DeviantArt.Net/Models/Deviation/Metadata.cs +++ b/DeviantArt.Net/Models/Deviation/Metadata.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Models.User; - -namespace DeviantArt.Net.Models.Deviation; +namespace DeviantArt.Net.Models.Deviation; public class Metadata { diff --git a/DeviantArt.Net/Models/Deviation/journalCreationRequest.cs b/DeviantArt.Net/Models/Deviation/journalCreationRequest.cs index cb312b2..f4dc8f9 100644 --- a/DeviantArt.Net/Models/Deviation/journalCreationRequest.cs +++ b/DeviantArt.Net/Models/Deviation/journalCreationRequest.cs @@ -1,7 +1,4 @@ -using DeviantArt.Net.Models.Deviation; -using DeviantArt.Net.Modules; - -namespace DeviantArt.Net.Models.Deviation; +namespace DeviantArt.Net.Models.Deviation; public class journalCreationRequest { diff --git a/DeviantArt.Net/Models/Message/Message.cs b/DeviantArt.Net/Models/Message/Message.cs index fb7ad82..c9f05b0 100644 --- a/DeviantArt.Net/Models/Message/Message.cs +++ b/DeviantArt.Net/Models/Message/Message.cs @@ -1,7 +1,4 @@ -using DeviantArt.Net.Models.Deviation; -using DeviantArt.Net.Modules.Util.Formatters; - -namespace DeviantArt.Net.Models.Message; +namespace DeviantArt.Net.Models.Message; public class Message { diff --git a/DeviantArt.Net/Models/TagNamesResponse.cs b/DeviantArt.Net/Models/TagNamesResponse.cs index fffd909..187ccb9 100644 --- a/DeviantArt.Net/Models/TagNamesResponse.cs +++ b/DeviantArt.Net/Models/TagNamesResponse.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Models.Deviation; - -namespace DeviantArt.Net.Models; +namespace DeviantArt.Net.Models; public class TagNamesResponse { diff --git a/DeviantArt.Net/Models/TopicsResponse.cs b/DeviantArt.Net/Models/TopicsResponse.cs index 584689c..6078454 100644 --- a/DeviantArt.Net/Models/TopicsResponse.cs +++ b/DeviantArt.Net/Models/TopicsResponse.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Models.Deviation; - -namespace DeviantArt.Net.Models; +namespace DeviantArt.Net.Models; public class TopicsResponse : PaginatedBase { diff --git a/DeviantArt.Net/Models/User/Folder.cs b/DeviantArt.Net/Models/User/Folder.cs index 118690c..e74d1ce 100644 --- a/DeviantArt.Net/Models/User/Folder.cs +++ b/DeviantArt.Net/Models/User/Folder.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Models.Deviation; - -namespace DeviantArt.Net.Models.User; +namespace DeviantArt.Net.Models.User; public class Folder { diff --git a/DeviantArt.Net/Models/User/Friend.cs b/DeviantArt.Net/Models/User/Friend.cs index 43fd86d..46aa4af 100644 --- a/DeviantArt.Net/Models/User/Friend.cs +++ b/DeviantArt.Net/Models/User/Friend.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Modules.Util.Formatters; - -namespace DeviantArt.Net.Models.User; +namespace DeviantArt.Net.Models.User; public class Friend : Watcher { diff --git a/DeviantArt.Net/Models/User/ProfileUpdateRequest.cs b/DeviantArt.Net/Models/User/ProfileUpdateRequest.cs index cb9d404..8f922ec 100644 --- a/DeviantArt.Net/Models/User/ProfileUpdateRequest.cs +++ b/DeviantArt.Net/Models/User/ProfileUpdateRequest.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Models.Data; - -namespace DeviantArt.Net.Models.User; +namespace DeviantArt.Net.Models.User; public class ProfileUpdateRequest { diff --git a/DeviantArt.Net/Models/User/User.cs b/DeviantArt.Net/Models/User/User.cs index 01861b2..1504edd 100644 --- a/DeviantArt.Net/Models/User/User.cs +++ b/DeviantArt.Net/Models/User/User.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Models.Deviation; - -namespace DeviantArt.Net.Models.User; +namespace DeviantArt.Net.Models.User; public class User { diff --git a/DeviantArt.Net/Models/User/UserProfile.cs b/DeviantArt.Net/Models/User/UserProfile.cs index 493b81e..f5919cb 100644 --- a/DeviantArt.Net/Models/User/UserProfile.cs +++ b/DeviantArt.Net/Models/User/UserProfile.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Models.Message; - -namespace DeviantArt.Net.Models.User; +namespace DeviantArt.Net.Models.User; using System; using System.Collections.Generic; diff --git a/DeviantArt.Net/Modules/Extension.cs b/DeviantArt.Net/Modules/Extension.cs index bd0198a..d426319 100644 --- a/DeviantArt.Net/Modules/Extension.cs +++ b/DeviantArt.Net/Modules/Extension.cs @@ -1,5 +1,4 @@ using System.Reflection; -using DeviantArt.Net.Models.User; namespace DeviantArt.Net.Modules; diff --git a/DeviantArt.Net/Modules/TokenStore/JsonTokenStore.cs b/DeviantArt.Net/Modules/TokenStore/JsonTokenStore.cs index 56acd21..1ba9279 100644 --- a/DeviantArt.Net/Modules/TokenStore/JsonTokenStore.cs +++ b/DeviantArt.Net/Modules/TokenStore/JsonTokenStore.cs @@ -1,6 +1,4 @@ -using System.Text.Json; - -namespace DeviantArt.Net.Modules.TokenStore; +namespace DeviantArt.Net.Modules.TokenStore; /// diff --git a/DeviantArt.Net/Modules/Util/Formatters/DateTimeOffsetNullableConverter.cs b/DeviantArt.Net/Modules/Util/Formatters/DateTimeOffsetNullableConverter.cs index 437a074..1f5ec01 100644 --- a/DeviantArt.Net/Modules/Util/Formatters/DateTimeOffsetNullableConverter.cs +++ b/DeviantArt.Net/Modules/Util/Formatters/DateTimeOffsetNullableConverter.cs @@ -1,5 +1,4 @@ using System.Globalization; -using System.Text.Json; namespace DeviantArt.Net.Modules.Util.Formatters; diff --git a/DeviantArt.Net/Modules/Util/Formatters/UnixTimeStampConverter.cs b/DeviantArt.Net/Modules/Util/Formatters/UnixTimeStampConverter.cs index c521d72..6903b6d 100644 --- a/DeviantArt.Net/Modules/Util/Formatters/UnixTimeStampConverter.cs +++ b/DeviantArt.Net/Modules/Util/Formatters/UnixTimeStampConverter.cs @@ -1,6 +1,4 @@ -using System.Text.Json; - -namespace DeviantArt.Net.Modules.Util.Formatters; +namespace DeviantArt.Net.Modules.Util.Formatters; public class UnixTimestampConverter : JsonConverter { diff --git a/DeviantArt.NetTest/ApiClientTests.cs b/DeviantArt.NetTest/ApiClientTests.cs index c70f482..4a32c97 100644 --- a/DeviantArt.NetTest/ApiClientTests.cs +++ b/DeviantArt.NetTest/ApiClientTests.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Models.Deviation; - -namespace DeviantArt.NetTest; +namespace DeviantArt.NetTest; [TestClass] public class ClientTests : Testbase diff --git a/DeviantArt.NetTest/CollectionTests.cs b/DeviantArt.NetTest/CollectionTests.cs index ff481ae..da5be0d 100644 --- a/DeviantArt.NetTest/CollectionTests.cs +++ b/DeviantArt.NetTest/CollectionTests.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Models.Deviation; - -namespace DeviantArt.NetTest; +namespace DeviantArt.NetTest; [TestClass] public class CollectionTests : Testbase diff --git a/DeviantArt.NetTest/DeviationTests.cs b/DeviantArt.NetTest/DeviationTests.cs index 86fb087..af87d28 100644 --- a/DeviantArt.NetTest/DeviationTests.cs +++ b/DeviantArt.NetTest/DeviationTests.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Models.Deviation; - -namespace DeviantArt.NetTest; +namespace DeviantArt.NetTest; [TestClass] public class DeviationTests : Testbase diff --git a/DeviantArt.NetTest/GalleryTests.cs b/DeviantArt.NetTest/GalleryTests.cs index 724f5c9..c52a457 100644 --- a/DeviantArt.NetTest/GalleryTests.cs +++ b/DeviantArt.NetTest/GalleryTests.cs @@ -1,6 +1,4 @@ -using DeviantArt.Net.Models.Deviation; - -namespace DeviantArt.NetTest; +namespace DeviantArt.NetTest; [TestClass] public class GalleryTests : Testbase diff --git a/DeviantArt.NetTest/GlobalUsings.cs b/DeviantArt.NetTest/GlobalUsings.cs index 3a8bf65..9c8ce48 100644 --- a/DeviantArt.NetTest/GlobalUsings.cs +++ b/DeviantArt.NetTest/GlobalUsings.cs @@ -1,8 +1,14 @@ // Global using directives +global using System.Globalization; global using System.Text.Json; global using DeviantArt.Net.Api; +global using DeviantArt.Net.Exceptions; global using DeviantArt.Net.Models; +global using DeviantArt.Net.Models.Data; +global using DeviantArt.Net.Models.Deviation; +global using DeviantArt.Net.Models.Message; +global using DeviantArt.Net.Models.User; global using DeviantArt.Net.Modules.TokenStore; global using DeviantArt.Net.Modules.Util; global using DeviantArt.NetTest.Utils; \ No newline at end of file diff --git a/DeviantArt.NetTest/MessageClientTests.cs b/DeviantArt.NetTest/MessageClientTests.cs index 35fe30f..105c9a7 100644 --- a/DeviantArt.NetTest/MessageClientTests.cs +++ b/DeviantArt.NetTest/MessageClientTests.cs @@ -1,7 +1,4 @@ -using DeviantArt.Net.Exceptions; -using DeviantArt.Net.Models.Message; - -namespace DeviantArt.NetTest; +namespace DeviantArt.NetTest; [TestClass] public class MessageClientTests : Testbase diff --git a/DeviantArt.NetTest/UserTests.cs b/DeviantArt.NetTest/UserTests.cs index 200c247..fe15903 100644 --- a/DeviantArt.NetTest/UserTests.cs +++ b/DeviantArt.NetTest/UserTests.cs @@ -1,7 +1,4 @@ -using DeviantArt.Net.Models.Data; -using DeviantArt.Net.Models.User; - -namespace DeviantArt.NetTest; +namespace DeviantArt.NetTest; [TestClass] public class UserTests : Testbase diff --git a/DeviantArt.NetTest/Utils/Ids.cs b/DeviantArt.NetTest/Utils/Ids.cs index e526c83..6a1b3ba 100644 --- a/DeviantArt.NetTest/Utils/Ids.cs +++ b/DeviantArt.NetTest/Utils/Ids.cs @@ -1,6 +1,4 @@ -using System.Globalization; - -namespace DeviantArt.NetTest.Utils; +namespace DeviantArt.NetTest.Utils; public static class Ids {