Skip to content

Commit

Permalink
feat(bus): fix formatting and reorder usings
Browse files Browse the repository at this point in the history
closes #172
  • Loading branch information
ostridm committed Jun 12, 2024
1 parent 6a60344 commit aa28055
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/SecTester.Repeater/Api/DeleteRepeaterRequest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Net.Http;
using SecTester.Repeater.Commands;
using SecTester.Core;
using SecTester.Repeater.Commands;

namespace SecTester.Repeater.Api;

Expand Down
4 changes: 2 additions & 2 deletions src/SecTester.Repeater/Dispatchers/HttpCommandDispatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
using System.Net.Http.Headers;
using System.Threading;
using System.Threading.Tasks;
using SecTester.Repeater.Commands;
using SecTester.Repeater.Extensions;
using SecTester.Core.Bus;
using SecTester.Core.Utils;
using SecTester.Repeater.Commands;
using SecTester.Repeater.Extensions;

namespace SecTester.Repeater.Dispatchers;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
using SecTester.Repeater.Exceptions;
using SecTester.Core.Bus;
using SecTester.Repeater.Exceptions;

namespace SecTester.Repeater.RetryStrategies;

Expand Down
2 changes: 1 addition & 1 deletion src/SecTester.Scan/Commands/DeleteScan.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using SecTester.Repeater.Commands;
using SecTester.Core;
using SecTester.Repeater.Commands;

namespace SecTester.Scan.Commands;

Expand Down
2 changes: 1 addition & 1 deletion src/SecTester.Scan/Commands/StopScan.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using SecTester.Repeater.Commands;
using SecTester.Core;
using SecTester.Repeater.Commands;

namespace SecTester.Scan.Commands;

Expand Down
16 changes: 5 additions & 11 deletions test/SecTester.Repeater.Tests/Usings.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
global using System.Net;
global using System.Net.Sockets;
global using System.Net.Http.Json;
global using System.Net.WebSockets;
global using System.Net.Sockets;
global using System.Text;
global using System.Text.Json;
global using System.Text.Json.Serialization;
global using System.Text.RegularExpressions;
global using System.Timers;
global using FluentAssertions;
global using Microsoft.AspNetCore;
global using Microsoft.AspNetCore.Builder;
global using Microsoft.AspNetCore.Hosting;
global using Microsoft.AspNetCore.Mvc.Testing;
global using Microsoft.AspNetCore.TestHost;
global using Microsoft.Extensions.DependencyInjection;
global using Microsoft.Extensions.DependencyInjection.Extensions;
global using Microsoft.Extensions.Logging;
Expand All @@ -23,17 +17,17 @@
global using RichardSzalay.MockHttp;
global using SecTester.Core;
global using SecTester.Core.Bus;
global using SecTester.Core.Logger;
global using SecTester.Core.Exceptions;
global using SecTester.Core.Logger;
global using SecTester.Core.Utils;
global using SecTester.Repeater.Api;
global using SecTester.Repeater.Bus;
global using SecTester.Repeater.Extensions;
global using SecTester.Repeater.Runners;
global using SecTester.Repeater.Tests.Mocks;
global using SecTester.Repeater.Commands;
global using SecTester.Repeater.Dispatchers;
global using SecTester.Repeater.Exceptions;
global using SecTester.Repeater.Extensions;
global using SecTester.Repeater.RetryStrategies;
global using SecTester.Repeater.Runners;
global using SecTester.Repeater.Tests.Mocks;
global using Xunit;

1 change: 0 additions & 1 deletion test/SecTester.Reporter.Tests/Usings.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
global using FluentAssertions;
global using SecTester.Scan.Models;
global using Xunit;
global using Microsoft.Extensions.DependencyInjection;
3 changes: 2 additions & 1 deletion test/SecTester.Scan.Tests/CI/VendorMatcherTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ public class VendorMatcherTests
{
private readonly JsonSerializerOptions _options = new()
{
PropertyNameCaseInsensitive = true, PropertyNamingPolicy = JsonNamingPolicy.CamelCase
PropertyNameCaseInsensitive = true,
PropertyNamingPolicy = JsonNamingPolicy.CamelCase
};

public static readonly IEnumerable<object[]> MatchEnvInput = new List<object[]>
Expand Down
5 changes: 2 additions & 3 deletions test/SecTester.Scan.Tests/Usings.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
global using System.Collections;
global using System.Net.Http.Headers;
global using System.Net.Http.Json;
global using System.Collections;
global using System.Collections.Specialized;
global using System.Text.Json;
global using System.Text;
global using System.Text.Json;
global using System.Text.RegularExpressions;
global using FluentAssertions;
global using Microsoft.Extensions.DependencyInjection;
Expand Down

0 comments on commit aa28055

Please sign in to comment.