using JSMR.Infrastructure.Data; using Microsoft.EntityFrameworkCore; namespace JSMR.Tests.Fixtures; public class CircleSearchProviderFixture : MariaDbFixture { protected override async Task OnInitializedAsync(AppDbContext context) { await SeedAsync(context); } private static async Task SeedAsync(AppDbContext context) { // Make seeding idempotent (quick existence check) if (await context.Circles.AnyAsync()) return; context.Circles.AddRange( new() { CircleId = 1, Name = "Good Dreams", MakerId = "RG00001" }, new() { CircleId = 2, Name = "Sweet Dreams", Favorite = true, MakerId = "RG00002" }, new() { CircleId = 3, Name = "Nightmare Fuel", Blacklisted = true, MakerId = "RG00003" }, new() { CircleId = 4, Name = "Garbage Studio", Spam = true, MakerId = "RG00004" } ); await context.SaveChangesAsync(); } }