We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2809a79 commit 48e70d8Copy full SHA for 48e70d8
Test/StubClasses/StubDefaultLocalizerWithLogging.cs
@@ -4,6 +4,7 @@
4
using LocalizeMessagesAndErrors;
5
using Microsoft.EntityFrameworkCore;
6
using Microsoft.Extensions.Configuration;
7
+using TestSupport.EfHelpers;
8
using TestSupport.Helpers;
9
10
namespace Test.StubClasses;
@@ -193,11 +194,7 @@ public void WipeLocalizationCaptureDb()
193
194
if (context == null)
195
return;
196
- if (context.Database.EnsureCreated())
197
- return;
198
- //The database exists so wipe the entries
199
- context.RemoveRange(context.LocalizedData?.ToList() ?? new List<LocalizedLog>());
200
- context.SaveChanges();
+ context.Database.EnsureClean();
201
}
202
203
public List<LocalizedLog> ListLocalizationCaptureDb()
0 commit comments