using AsbCloudDb.Model; namespace AsbCloudWebApi.IntegrationTests; public static class EFCoreExtensions { public static void CleanupDbSet(this IAsbCloudDbContext dbContext) where T : class { var dbset = dbContext.Set(); dbset.RemoveRange(dbset); dbContext.SaveChanges(); } }