diff --git a/.editorconfig b/.editorconfig index 16f2cc6..ddc8599 100644 --- a/.editorconfig +++ b/.editorconfig @@ -80,6 +80,11 @@ dotnet_style_prefer_compound_assignment = true:suggestion dotnet_style_prefer_simplified_interpolation = true:suggestion dotnet_style_namespace_match_folder = true:suggestion ############################### +# IDE EditorConfig Settings # +############################### +# IDE0005: Using directive is unnecessary. +dotnet_diagnostic.IDE0005.severity = warning +############################### # C# Coding Conventions # ############################### [*.cs] diff --git a/Directory.Packages.props b/Directory.Packages.props index a5afb35..9803401 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -16,13 +16,8 @@ - - - - - @@ -36,10 +31,8 @@ - - diff --git a/src/CleanArchitecture.Core/Services/EntryPointService.cs b/src/CleanArchitecture.Core/Services/EntryPointService.cs index a13c15a..8d29e76 100644 --- a/src/CleanArchitecture.Core/Services/EntryPointService.cs +++ b/src/CleanArchitecture.Core/Services/EntryPointService.cs @@ -28,7 +28,7 @@ public async Task ExecuteAsync() // read from the queue string message = await _queueReceiver.GetMessageFromQueue(_settings.ReceivingQueueName); - if (String.IsNullOrEmpty(message)) return; + if (string.IsNullOrEmpty(message)) return; // check 1 URL in the message var statusHistory = await _urlStatusChecker.CheckUrlAsync(message, ""); diff --git a/tests/CleanArchitecture.UnitTests/Core/EntryPointServiceExecuteAsync.cs b/tests/CleanArchitecture.UnitTests/Core/EntryPointServiceExecuteAsync.cs index fe9f206..522f3e7 100644 --- a/tests/CleanArchitecture.UnitTests/Core/EntryPointServiceExecuteAsync.cs +++ b/tests/CleanArchitecture.UnitTests/Core/EntryPointServiceExecuteAsync.cs @@ -20,11 +20,12 @@ private static (EntryPointService, Mock>, Mock }; var queueReceiver = new Mock(); var serviceLocator = new Mock(); + var urlStatusChecker = new Mock(); // maybe a tuple later on var repository = SetupCreateScope(serviceLocator); - var service = new EntryPointService(logger.Object, settings, queueReceiver.Object, null, serviceLocator.Object, null); + var service = new EntryPointService(logger.Object, settings, queueReceiver.Object, serviceLocator.Object, urlStatusChecker.Object); return (service, logger, queueReceiver, serviceLocator, repository); }