Files
jsmr/JSMR.Tests/Search/Creator/CreatorSearchProviderFixture.cs
Brian Bicknell fd384a1998
All checks were successful
ci / build-test (push) Successful in 1m27s
ci / publish-image (push) Has been skipped
Cleaned up test code files.
2025-11-04 09:53:50 -05:00

18 lines
596 B
C#

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();
}
}