Enable more analyzers, drop log-and-rethrow in file activities and apply dotnet format
Use invariant culture when formatting ids, put cancellation tokens last in endpoint handlers, remove the CS8618 pragmas and keep only the analyzer overrides that still apply.
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
using Musify.Application.Genres;
|
||||
using Musify.Application.Genres.Responses;
|
||||
using Musify.Domain.ValueObjects;
|
||||
using Xunit;
|
||||
using Musify.Application.Genres.Responses;
|
||||
|
||||
namespace Musify.Application.Tests.Genres;
|
||||
|
||||
|
||||
@@ -12,7 +12,11 @@ public abstract class HandlerTestBase : IAsyncLifetime
|
||||
|
||||
public async ValueTask InitializeAsync() => database = await TestDatabase.CreateAsync();
|
||||
|
||||
public ValueTask DisposeAsync() => database.DisposeAsync();
|
||||
public ValueTask DisposeAsync()
|
||||
{
|
||||
GC.SuppressFinalize(this);
|
||||
return database.DisposeAsync();
|
||||
}
|
||||
|
||||
protected static ILogger<T> NoOpLogger<T>() => NullLogger<T>.Instance;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user