Cleaned up test code files.
All checks were successful
ci / build-test (push) Successful in 1m27s
ci / publish-image (push) Has been skipped

This commit is contained in:
2025-11-04 09:53:50 -05:00
parent 06f8c2ec9e
commit fd384a1998
10 changed files with 115 additions and 332 deletions

View File

@@ -0,0 +1,18 @@
using JSMR.Infrastructure.Data;
using JSMR.Tests.Fixtures;
namespace JSMR.Tests.Search.Creator;
public sealed class CreatorSearchProviderFixture(MariaDbContainerFixture container) : SearchProviderFixture(container)
{
protected override async Task SeedAsync(AppDbContext context)
{
context.Creators.AddRange(
new() { CreatorId = 1, Name = "John Smith" },
new() { CreatorId = 2, Name = "John Doe", Favorite = true },
new() { CreatorId = 3, Name = "Jane Doe", Blacklisted = true }
);
await context.SaveChangesAsync();
}
}