using Persistence.Database.Model; namespace Persistence.IntegrationTests.Extensions; public static class EFCoreExtensions { public static void CleanupDbSet(this PersistenceDbContext dbContext) where T : class { var dbset = dbContext.Set(); dbset.RemoveRange(dbset); dbContext.SaveChanges(); } }