File tree Expand file tree Collapse file tree 2 files changed +4
-28
lines changed
test/EFCore.MySql.FunctionalTests Expand file tree Collapse file tree 2 files changed +4
-28
lines changed Original file line number Diff line number Diff line change 11using System . Threading . Tasks ;
2+ using Microsoft . EntityFrameworkCore ;
23using Microsoft . EntityFrameworkCore . BulkUpdates ;
34using Microsoft . EntityFrameworkCore . TestUtilities ;
45using MySqlConnector ;
78
89namespace Pomelo . EntityFrameworkCore . MySql . FunctionalTests . BulkUpdates ;
910
10- public class NonSharedModelBulkUpdatesMySqlTest : NonSharedModelBulkUpdatesRelationalTestBase
11+ public class NonSharedModelBulkUpdatesMySqlTest ( NonSharedFixture fixture ) : NonSharedModelBulkUpdatesRelationalTestBase ( fixture )
1112{
12- public NonSharedModelBulkUpdatesMySqlTest ( )
13- : base ( new MySqlNonSharedModelBulkUpdatesFixture ( ) )
14- {
15- }
16-
1713 protected override ITestStoreFactory TestStoreFactory
1814 => MySqlTestStoreFactory . Instance ;
1915
20- public class MySqlNonSharedModelBulkUpdatesFixture : NonSharedModelBulkUpdatesFixtureBase
21- {
22- protected override string StoreName => "NonSharedModelBulkUpdates" ;
23- protected override ITestStoreFactory TestStoreFactory => MySqlTestStoreFactory . Instance ;
24- }
25-
2616 [ ConditionalFact ]
2717 public virtual void Check_all_tests_overridden ( )
2818 => MySqlTestHelpers . AssertAllMethodsOverridden ( GetType ( ) ) ;
Original file line number Diff line number Diff line change 44
55namespace Pomelo . EntityFrameworkCore . MySql . FunctionalTests ;
66
7- public class MaterializationInterceptionMySqlTest : MaterializationInterceptionTestBase < MaterializationInterceptionMySqlTest . MySqlLibraryContext >
7+ public class MaterializationInterceptionMySqlTest ( NonSharedFixture fixture ) :
8+ MaterializationInterceptionTestBase < MaterializationInterceptionMySqlTest . MySqlLibraryContext > ( fixture )
89{
9- public MaterializationInterceptionMySqlTest ( )
10- : base ( new MySqlMaterializationInterceptionFixture ( ) )
11- {
12- }
1310
1411 public class MySqlLibraryContext : LibraryContext
1512 {
@@ -31,15 +28,4 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
3128
3229 protected override ITestStoreFactory TestStoreFactory
3330 => 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- }
4531}
You can’t perform that action at this time.
0 commit comments