Files
jsmr/JSMR.Tests/Fixtures/CreatorSearchProviderFixture.cs
Brian Bicknell 4204847c39
Some checks failed
ci / build-test (push) Failing after 14m38s
ci / publish-image (push) Has been skipped
Cleaned up various fixtures. Skip publish-image for now.
2025-11-03 09:20:20 -05:00

17 lines
563 B
C#

using JSMR.Infrastructure.Data;
namespace JSMR.Tests.Fixtures;
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();
}
}