Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using ExpertiseApi.Data;
using FluentAssertions;

namespace ExpertiseApi.Tests.Architecture;

Expand Down
2 changes: 1 addition & 1 deletion tests/ExpertiseApi.Tests/ExpertiseApi.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
the original FluentAssertions package (which is now Xceed-commercial v8+)
so it cannot re-land here.
-->
<PackageReference Include="AwesomeAssertions" Version="8.*" />
<PackageReference Include="AwesomeAssertions" Version="9.*" />
<PackageReference Include="xunit" Version="2.9.*" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.*">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
4 changes: 4 additions & 0 deletions tests/ExpertiseApi.Tests/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
global using Xunit;
global using Microsoft.EntityFrameworkCore;
// AwesomeAssertions 9.x renamed the namespace (`FluentAssertions` →
// `AwesomeAssertions`); hoisting the import here lets every test file drop
// its per-file using and stay namespace-agnostic at the call sites.
global using AwesomeAssertions;
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using ExpertiseApi.Data;
using ExpertiseApi.Models;
using ExpertiseApi.Tests.Infrastructure;
using FluentAssertions;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;

Expand Down
1 change: 0 additions & 1 deletion tests/ExpertiseApi.Tests/Integration/AuthEndpointTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System.Net;
using System.Net.Http.Headers;
using ExpertiseApi.Tests.Infrastructure;
using FluentAssertions;

namespace ExpertiseApi.Tests.Integration;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using ExpertiseApi.Data;
using ExpertiseApi.Models;
using ExpertiseApi.Tests.Infrastructure;
using FluentAssertions;
using Microsoft.Extensions.DependencyInjection;

namespace ExpertiseApi.Tests.Integration;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System.Net;
using System.Net.Http.Json;
using ExpertiseApi.Tests.Infrastructure;
using FluentAssertions;

namespace ExpertiseApi.Tests.Integration;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System.Net;
using System.Net.Http.Headers;
using ExpertiseApi.Tests.Infrastructure;
using FluentAssertions;

namespace ExpertiseApi.Tests.Integration;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Net;
using ExpertiseApi.Tests.Infrastructure;
using FluentAssertions;

namespace ExpertiseApi.Tests.Integration;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using ExpertiseApi.Auth;
using ExpertiseApi.Data;
using FluentAssertions;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using ExpertiseApi.Data;
using ExpertiseApi.Models;
using ExpertiseApi.Tests.Infrastructure;
using FluentAssertions;
using Microsoft.Extensions.DependencyInjection;

namespace ExpertiseApi.Tests.Integration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using ExpertiseApi.Data;
using ExpertiseApi.Models;
using ExpertiseApi.Tests.Infrastructure;
using FluentAssertions;
using Microsoft.Extensions.DependencyInjection;

namespace ExpertiseApi.Tests.Integration;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Text.Encodings.Web;
using ExpertiseApi.Auth;
using FluentAssertions;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
Expand Down
1 change: 0 additions & 1 deletion tests/ExpertiseApi.Tests/Unit/ApiKeyAuthHandlerTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Security.Cryptography;
using System.Text;
using FluentAssertions;

namespace ExpertiseApi.Tests.Unit;

Expand Down
1 change: 0 additions & 1 deletion tests/ExpertiseApi.Tests/Unit/AuthModeStartupGuardTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using ExpertiseApi.Auth;
using FluentAssertions;
using Microsoft.Extensions.Hosting;

namespace ExpertiseApi.Tests.Unit;
Expand Down
1 change: 0 additions & 1 deletion tests/ExpertiseApi.Tests/Unit/CosineDistanceTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using ExpertiseApi.Data;
using FluentAssertions;

namespace ExpertiseApi.Tests.Unit;

Expand Down
1 change: 0 additions & 1 deletion tests/ExpertiseApi.Tests/Unit/DeduplicationServiceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using ExpertiseApi.Models;
using ExpertiseApi.Services;
using ExpertiseApi.Tests.Infrastructure;
using FluentAssertions;
using Microsoft.Extensions.Options;
using NSubstitute;
using Pgvector;
Expand Down
1 change: 0 additions & 1 deletion tests/ExpertiseApi.Tests/Unit/IntegrityHashServiceTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using ExpertiseApi.Models;
using ExpertiseApi.Services;
using FluentAssertions;

namespace ExpertiseApi.Tests.Unit;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using ExpertiseApi.Auth;
using FluentAssertions;

namespace ExpertiseApi.Tests.Unit;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Security.Claims;
using ExpertiseApi.Auth;
using FluentAssertions;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;

Expand Down
Loading