Убрать неиспользуемые using по код-стайлу
Прогон dotnet format (IDE0005) по 4 решениям: удалены лишние using, оставшиеся после миграции namespace (676 файлов).
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
using Xunit;
|
||||
|
||||
// Интеграционные тесты telegram-service поднимают реальные Kestrel-хосты и меняют процесс-глобальные
|
||||
// env-переменные (DEAL_SERVICE_TOKEN/DEAL_TELEGRAM_SESSION_KEY/DEAL_TELEGRAM_SESSION_DIR) на время
|
||||
// сценария (TelegramTestHost). Параллельный прогон классов дал бы гонки на env — тесты сериализованы.
|
||||
|
||||
@@ -4,8 +4,6 @@ using Deal.Telegram.Sessions;
|
||||
using Grpc.Core;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.Extensions.Logging.Abstractions;
|
||||
using Xunit;
|
||||
using Deal.Telegram.Tests.Support;
|
||||
|
||||
namespace Deal.Telegram.Tests.Grpc;
|
||||
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
using Deal.Grpc.Telegram;
|
||||
using Deal.Telegram.Dialogs;
|
||||
using Deal.Telegram.Telegram;
|
||||
using Deal.Telegram.Extensions;
|
||||
using Deal.Telegram.Tests.Telegram;
|
||||
using Grpc.Core;
|
||||
using Grpc.Net.Client;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.DependencyInjection.Extensions;
|
||||
using Xunit;
|
||||
using Deal.Telegram.Tests.Support;
|
||||
using Deal.Telegram.Tests.Telegram;
|
||||
|
||||
namespace Deal.Telegram.Tests.Grpc;
|
||||
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
using Deal.Grpc.Telegram;
|
||||
using Deal.Telegram.Discovery;
|
||||
using Deal.Telegram.Dialogs;
|
||||
using Deal.Telegram.Discovery;
|
||||
using Deal.Telegram.Telegram;
|
||||
using Deal.Telegram.Extensions;
|
||||
using Xunit;
|
||||
using Deal.Telegram.Tests.Support;
|
||||
|
||||
namespace Deal.Telegram.Tests.Grpc;
|
||||
|
||||
|
||||
@@ -1,15 +1,11 @@
|
||||
using Deal.Grpc.Telegram;
|
||||
using Deal.Telegram.Dialogs;
|
||||
using Deal.Telegram.Telegram;
|
||||
using Deal.Telegram.Extensions;
|
||||
using Deal.Telegram.Tests.Telegram;
|
||||
using Grpc.Core;
|
||||
using Grpc.Net.Client;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.DependencyInjection.Extensions;
|
||||
using Xunit;
|
||||
using Deal.Telegram.Tests.Support;
|
||||
using Deal.Telegram.Tests.Telegram;
|
||||
|
||||
namespace Deal.Telegram.Tests.Grpc;
|
||||
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using Deal.Grpc.Telegram;
|
||||
using Grpc.Core;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.AspNetCore.Server.Kestrel.Core;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using Deal.Telegram.Tests.Support;
|
||||
|
||||
namespace Deal.Telegram.Tests.Grpc;
|
||||
|
||||
|
||||
@@ -2,12 +2,9 @@ using Deal.Grpc.Telegram;
|
||||
using Deal.Telegram.Dialogs;
|
||||
using Deal.Telegram.Sessions;
|
||||
using Deal.Telegram.Telegram;
|
||||
using Deal.Telegram.Extensions;
|
||||
using Deal.Telegram.Tests.Telegram;
|
||||
using Grpc.Core;
|
||||
using Microsoft.Extensions.Logging.Abstractions;
|
||||
using Xunit;
|
||||
using Deal.Telegram.Tests.Support;
|
||||
using Deal.Telegram.Tests.Telegram;
|
||||
|
||||
namespace Deal.Telegram.Tests.Grpc;
|
||||
|
||||
|
||||
@@ -2,8 +2,6 @@ using Deal.Grpc.Telegram;
|
||||
using Grpc.Core;
|
||||
using Grpc.Health.V1;
|
||||
using Grpc.Net.Client;
|
||||
using Xunit;
|
||||
using Deal.Telegram.Tests.Support;
|
||||
|
||||
namespace Deal.Telegram.Tests.Grpc;
|
||||
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
using Deal.Grpc.Telegram;
|
||||
using Deal.Telegram.Telegram;
|
||||
using Deal.Telegram.Extensions;
|
||||
using Deal.Telegram.Tests.Telegram;
|
||||
using Grpc.Core;
|
||||
using Grpc.Net.Client;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Xunit;
|
||||
using Deal.Telegram.Tests.Support;
|
||||
using Deal.Telegram.Tests.Telegram;
|
||||
|
||||
namespace Deal.Telegram.Tests.Grpc;
|
||||
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using Deal.Grpc.Hosting;
|
||||
using Deal.Telegram;
|
||||
using Deal.Telegram.Core;
|
||||
using Deal.Telegram.Sessions;
|
||||
using Grpc.Core;
|
||||
using Grpc.Net.Client;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using Deal.Telegram.Tests.Support;
|
||||
|
||||
namespace Deal.Telegram.Tests.Grpc;
|
||||
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
using Deal.Grpc.Telegram;
|
||||
using Deal.Telegram.Core;
|
||||
using Deal.Telegram.Dialogs;
|
||||
using Grpc.Core;
|
||||
using Deal.Telegram.Tests.Support;
|
||||
|
||||
namespace Deal.Telegram.Tests.Grpc;
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
using System.Security.Cryptography;
|
||||
using Deal.Telegram.Sessions;
|
||||
using Grpc.Core;
|
||||
using Xunit;
|
||||
using Deal.Telegram.Tests.Telegram;
|
||||
using Grpc.Core;
|
||||
|
||||
namespace Deal.Telegram.Tests.Support;
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
using System.Diagnostics;
|
||||
using Deal.Telegram.Sessions;
|
||||
using Deal.Telegram.Tests.Telegram;
|
||||
using Grpc.Core;
|
||||
using Microsoft.Extensions.Logging.Abstractions;
|
||||
using Xunit;
|
||||
using Deal.Telegram.Tests.Telegram;
|
||||
|
||||
namespace Deal.Telegram.Tests.Support;
|
||||
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
using Deal.Telegram.Dialogs;
|
||||
using Deal.Telegram.Sessions;
|
||||
using Deal.Telegram.Telegram;
|
||||
using Deal.Telegram.Extensions;
|
||||
using Deal.Telegram.Tests.Grpc;
|
||||
using Grpc.Core;
|
||||
using Microsoft.Extensions.Logging.Abstractions;
|
||||
using Xunit;
|
||||
using Deal.Telegram.Tests.Support;
|
||||
using Deal.Telegram.Tests.Grpc;
|
||||
|
||||
namespace Deal.Telegram.Tests.Telegram;
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using Deal.Telegram.Dialogs;
|
||||
using Xunit;
|
||||
using Deal.Telegram.Tests.Support;
|
||||
|
||||
namespace Deal.Telegram.Tests.Telegram;
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using Deal.Telegram.Dialogs;
|
||||
using Xunit;
|
||||
using Deal.Telegram.Tests.Support;
|
||||
|
||||
namespace Deal.Telegram.Tests.Telegram;
|
||||
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
using Deal.Telegram.Discovery;
|
||||
using Deal.Telegram.Sessions;
|
||||
using Deal.Telegram.Telegram;
|
||||
using Deal.Telegram.Extensions;
|
||||
using Deal.Telegram.Tests.Grpc;
|
||||
using Grpc.Core;
|
||||
using Microsoft.Extensions.Logging.Abstractions;
|
||||
using Xunit;
|
||||
using Deal.Telegram.Tests.Support;
|
||||
using Deal.Telegram.Tests.Grpc;
|
||||
|
||||
namespace Deal.Telegram.Tests.Telegram;
|
||||
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
using Deal.Telegram.Sessions;
|
||||
using Deal.Telegram.Telegram;
|
||||
using Deal.Telegram.Extensions;
|
||||
using Deal.Telegram.Tests.Support;
|
||||
|
||||
namespace Deal.Telegram.Tests.Telegram;
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
using Deal.Telegram.Sessions;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Logging.Abstractions;
|
||||
using Deal.Telegram.Tests.Support;
|
||||
|
||||
namespace Deal.Telegram.Tests.Telegram;
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using Deal.Telegram.Caching;
|
||||
using Xunit;
|
||||
using Deal.Telegram.Tests.Support;
|
||||
|
||||
namespace Deal.Telegram.Tests.Telegram;
|
||||
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
using Deal.Telegram.Dialogs;
|
||||
using Deal.Telegram.Sessions;
|
||||
using Deal.Telegram.Telegram;
|
||||
using Deal.Telegram.Extensions;
|
||||
using Deal.Telegram.Tests.Grpc;
|
||||
using Grpc.Core;
|
||||
using Microsoft.Extensions.Logging.Abstractions;
|
||||
using Xunit;
|
||||
using Deal.Telegram.Tests.Support;
|
||||
using Deal.Telegram.Tests.Grpc;
|
||||
|
||||
namespace Deal.Telegram.Tests.Telegram;
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Deal.Telegram.Sessions;
|
||||
using Microsoft.Extensions.Logging.Abstractions;
|
||||
using Deal.Telegram.Tests.Support;
|
||||
|
||||
namespace Deal.Telegram.Tests.Telegram;
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Deal.Telegram.Sessions;
|
||||
using Microsoft.Extensions.Logging.Abstractions;
|
||||
using Deal.Telegram.Tests.Support;
|
||||
|
||||
namespace Deal.Telegram.Tests.Telegram;
|
||||
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
using Deal.Telegram.Telegram;
|
||||
using Deal.Telegram.Extensions;
|
||||
using TL;
|
||||
using Xunit;
|
||||
using Deal.Telegram.Tests.Support;
|
||||
|
||||
namespace Deal.Telegram.Tests.Telegram;
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ using Deal.Grpc.Telegram;
|
||||
using Deal.Telegram.Core;
|
||||
using Deal.Telegram.Sessions;
|
||||
using Deal.Telegram.Telegram;
|
||||
using Deal.Telegram.Extensions;
|
||||
|
||||
namespace Deal.Telegram.Dialogs;
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using System.Globalization;
|
||||
using Deal.Grpc.Telegram;
|
||||
using Deal.Telegram.Telegram;
|
||||
using Deal.Telegram.Extensions;
|
||||
|
||||
namespace Deal.Telegram.Dialogs;
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@ using Deal.Grpc.Telegram;
|
||||
using Deal.Telegram.Core;
|
||||
using Deal.Telegram.Sessions;
|
||||
using Deal.Telegram.Telegram;
|
||||
using Deal.Telegram.Extensions;
|
||||
|
||||
namespace Deal.Telegram.Dialogs;
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@ using Deal.Grpc.Telegram;
|
||||
using Deal.Telegram.Core;
|
||||
using Deal.Telegram.Sessions;
|
||||
using Deal.Telegram.Telegram;
|
||||
using Deal.Telegram.Extensions;
|
||||
|
||||
namespace Deal.Telegram.Dialogs;
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using Deal.Telegram.Dialogs;
|
||||
using Deal.Telegram.Sessions;
|
||||
using Deal.Telegram.Telegram;
|
||||
using Deal.Telegram.Extensions;
|
||||
using Grpc.Core;
|
||||
|
||||
namespace Deal.Telegram.Discovery;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using Deal.Grpc.Telegram;
|
||||
using Deal.Telegram.Dialogs;
|
||||
using Deal.Telegram.Telegram;
|
||||
using Deal.Telegram.Extensions;
|
||||
|
||||
namespace Deal.Telegram.Discovery;
|
||||
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
using System.IO;
|
||||
using System.Net.Http;
|
||||
using Grpc.Core;
|
||||
using Deal.Telegram.Telegram;
|
||||
using Deal.Telegram.Extensions;
|
||||
|
||||
namespace Deal.Telegram.Extensions;
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using System.Collections.Concurrent;
|
||||
using Grpc.Core;
|
||||
using Deal.Telegram.Telegram;
|
||||
using Deal.Telegram.Extensions;
|
||||
using Grpc.Core;
|
||||
|
||||
namespace Deal.Telegram.Sessions;
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Grpc.Core;
|
||||
using Deal.Telegram.Telegram;
|
||||
using Deal.Telegram.Extensions;
|
||||
using Grpc.Core;
|
||||
|
||||
namespace Deal.Telegram.Sessions;
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using Deal.Telegram.Extensions;
|
||||
|
||||
namespace Deal.Telegram.Telegram;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using Deal.Telegram.Extensions;
|
||||
|
||||
namespace Deal.Telegram.Telegram;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using Deal.Telegram.Extensions;
|
||||
|
||||
namespace Deal.Telegram.Telegram;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using Deal.Telegram.Extensions;
|
||||
|
||||
namespace Deal.Telegram.Telegram;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using Deal.Telegram.Extensions;
|
||||
|
||||
namespace Deal.Telegram.Telegram;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using Deal.Telegram.Extensions;
|
||||
|
||||
namespace Deal.Telegram.Telegram;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using Deal.Telegram.Extensions;
|
||||
|
||||
namespace Deal.Telegram.Telegram;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using Deal.Telegram.Extensions;
|
||||
|
||||
namespace Deal.Telegram.Telegram;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using Deal.Telegram.Extensions;
|
||||
|
||||
namespace Deal.Telegram.Telegram;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Globalization;
|
||||
using Grpc.Core;
|
||||
using Deal.Telegram.Caching;
|
||||
using Deal.Telegram.Sessions;
|
||||
using Grpc.Core;
|
||||
using TL;
|
||||
using WTelegram;
|
||||
using RpcException = TL.RpcException;
|
||||
|
||||
@@ -5,7 +5,6 @@ using Deal.Telegram.Discovery;
|
||||
using Deal.Telegram.Hosting;
|
||||
using Deal.Telegram.Sessions;
|
||||
using Deal.Telegram.Telegram;
|
||||
using Deal.Telegram.Extensions;
|
||||
|
||||
namespace Deal.Telegram;
|
||||
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
using System.Net.Http;
|
||||
using Deal.Grpc.Telegram;
|
||||
using Deal.Telegram.Core;
|
||||
using Deal.Telegram.Dialogs;
|
||||
using Deal.Telegram.Discovery;
|
||||
using Deal.Telegram.Extensions;
|
||||
using Deal.Telegram.Sessions;
|
||||
using Deal.Telegram.Telegram;
|
||||
using Deal.Telegram.Extensions;
|
||||
using Grpc.Core;
|
||||
|
||||
namespace Deal.Telegram;
|
||||
|
||||
Reference in New Issue
Block a user