File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
test/EFCore.MySql.FunctionalTests Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,20 @@ namespace Pomelo.EntityFrameworkCore.MySql.FunctionalTests.BulkUpdates;
99
1010public 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 ( ) ) ;
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ namespace Pomelo.EntityFrameworkCore.MySql.FunctionalTests;
66
77public 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}
You can’t perform that action at this time.
0 commit comments