Skip to content

Commit debf1b6

Browse files
Copilotrenemadsen
andcommitted
Addressing PR comments
Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com>
1 parent 2d9b61e commit debf1b6

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

test/EFCore.MySql.FunctionalTests/BulkUpdates/NonSharedModelBulkUpdatesMySqlTest.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,20 @@ namespace Pomelo.EntityFrameworkCore.MySql.FunctionalTests.BulkUpdates;
99

1010
public class NonSharedModelBulkUpdatesMySqlTest : NonSharedModelBulkUpdatesRelationalTestBase
1111
{
12+
public NonSharedModelBulkUpdatesMySqlTest()
13+
: base(new MySqlNonSharedModelBulkUpdatesFixture())
14+
{
15+
}
16+
1217
protected override ITestStoreFactory TestStoreFactory
1318
=> MySqlTestStoreFactory.Instance;
1419

20+
public class MySqlNonSharedModelBulkUpdatesFixture : NonSharedModelBulkUpdatesFixtureBase
21+
{
22+
protected override string StoreName => "NonSharedModelBulkUpdates";
23+
protected override ITestStoreFactory TestStoreFactory => MySqlTestStoreFactory.Instance;
24+
}
25+
1526
[ConditionalFact]
1627
public virtual void Check_all_tests_overridden()
1728
=> MySqlTestHelpers.AssertAllMethodsOverridden(GetType());

test/EFCore.MySql.FunctionalTests/MaterializationInterceptionMySqlTest.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ namespace Pomelo.EntityFrameworkCore.MySql.FunctionalTests;
66

77
public class MaterializationInterceptionMySqlTest : MaterializationInterceptionTestBase<MaterializationInterceptionMySqlTest.MySqlLibraryContext>
88
{
9+
public MaterializationInterceptionMySqlTest()
10+
: base(new MySqlMaterializationInterceptionFixture())
11+
{
12+
}
13+
914
public class MySqlLibraryContext : LibraryContext
1015
{
1116
public MySqlLibraryContext(DbContextOptions options)
@@ -26,4 +31,15 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
2631

2732
protected override ITestStoreFactory TestStoreFactory
2833
=> MySqlTestStoreFactory.Instance;
34+
35+
public class MySqlMaterializationInterceptionFixture : SingletonInterceptorsFixtureBase
36+
{
37+
protected override string StoreName => "MaterializationInterception";
38+
protected override ITestStoreFactory TestStoreFactory => MySqlTestStoreFactory.Instance;
39+
40+
protected override IServiceCollection InjectInterceptors(
41+
IServiceCollection serviceCollection,
42+
IEnumerable<IInterceptor> injectedInterceptors)
43+
=> base.InjectInterceptors(serviceCollection.AddEntityFrameworkMySql(), injectedInterceptors);
44+
}
2945
}

0 commit comments

Comments
 (0)