Aligns the test fixture field names with their types and tidies the remaining tests

This commit is contained in:
BinaryAlley committed 2026-10-10 14:24:00 +03:00
1 parent 95e771191e
commit a514335a10
99 files changed
+1523 -1499

No files matched your search

@@ -11,7 +11,7 @@ namespace Lumina.Plugins.OpenLibrary.Fixtures.Common.Models.Contracts.Responses;
[ExcludeFromCodeCoverage]
internal class OpenLibraryRatingsResponseFixture
{
private readonly OpenLibraryRatingSummaryResponseFixture _ratingSummaryResponseFixture = new();
private readonly OpenLibraryRatingSummaryResponseFixture _openLibraryRatingSummaryResponseFixture = new();
/// <summary>
/// Creates a random valid <see cref="OpenLibraryRatingsResponse"/>.
@@ -22,7 +22,7 @@ internal class OpenLibraryRatingsResponseFixture
{
return new OpenLibraryRatingsResponse
{
Summary = summary ?? _ratingSummaryResponseFixture.Create()
Summary = summary ?? _openLibraryRatingSummaryResponseFixture.Create()
};
}
}
@@ -13,7 +13,7 @@ namespace Lumina.Plugins.OpenLibrary.Fixtures.Common.Models.Contracts.Responses;
internal class OpenLibraryWorkAuthorResponseFixture
{
private readonly Faker _faker = new();
private readonly OpenLibraryKeyReferenceResponseFixture _keyReferenceResponseFixture = new();
private readonly OpenLibraryKeyReferenceResponseFixture _openLibraryKeyReferenceResponseFixture = new();
/// <summary>
/// Creates a random valid <see cref="OpenLibraryWorkAuthorResponse"/>.
@@ -27,7 +27,7 @@ internal class OpenLibraryWorkAuthorResponseFixture
{
return new OpenLibraryWorkAuthorResponse
{
Author = author ?? _keyReferenceResponseFixture.Create(key: $"/authors/OL{_faker.Random.Number(1000, 9999)}A"),
Author = author ?? _openLibraryKeyReferenceResponseFixture.Create(key: $"/authors/OL{_faker.Random.Number(1000, 9999)}A"),
Key = key
};
}