@@ -2,7 +2,7 @@ namespace Microsoft.EntityFrameworkCore.BulkUpdates;
22
33public class NonSharedModelBulkUpdatesNpgsqlTest ( NonSharedFixture fixture ) : NonSharedModelBulkUpdatesRelationalTestBase ( fixture )
44{
5- protected override ITestStoreFactory TestStoreFactory
5+ protected override ITestStoreFactory NonSharedTestStoreFactory
66 => NpgsqlTestStoreFactory . Instance ;
77
88
@@ -149,7 +149,7 @@ public override async Task Update_owned_and_non_owned_properties_with_table_shar
149149 public override async Task Update_main_table_in_entity_with_entity_splitting ( bool async )
150150 {
151151 // Overridden/duplicated because we update DateTime, which Npgsql requires to be a UTC timestamp
152- var contextFactory = await InitializeAsync < DbContext > (
152+ var contextFactory = await InitializeNonSharedTest < DbContext > (
153153 onModelCreating : mb => mb . Entity < Blog > ( )
154154 . ToTable ( "Blogs" )
155155 . SplitToTable (
@@ -166,7 +166,7 @@ public override async Task Update_main_table_in_entity_with_entity_splitting(boo
166166
167167 await AssertUpdate (
168168 async ,
169- contextFactory . CreateContext ,
169+ contextFactory . CreateDbContext ,
170170 ss => ss . Set < Blog > ( ) ,
171171 s => s . SetProperty ( b => b . CreationTimestamp , b => new DateTime ( 2020 , 1 , 1 , 0 , 0 , 0 , DateTimeKind . Utc ) ) ,
172172 rowsAffectedCount : 1 ) ;
@@ -226,7 +226,7 @@ SELECT COALESCE(sum(o0."Amount"), 0)::int
226226 [ MemberData ( nameof ( IsAsyncData ) ) ]
227227 public virtual async Task Update_with_primitive_collection_in_value_selector ( bool async )
228228 {
229- var contextFactory = await InitializeAsync < Context3001 > (
229+ var contextFactory = await InitializeNonSharedTest < Context3001 > (
230230 seed : async ctx =>
231231 {
232232 ctx . AddRange ( new EntityWithPrimitiveCollection { Tags = [ "tag1" , "tag2" ] } ) ;
@@ -235,7 +235,7 @@ public virtual async Task Update_with_primitive_collection_in_value_selector(boo
235235
236236 await Assert . ThrowsAsync < InvalidOperationException > ( ( ) => AssertUpdate (
237237 async ,
238- contextFactory . CreateContext ,
238+ contextFactory . CreateDbContext ,
239239 ss => ss . EntitiesWithPrimitiveCollection ,
240240 s => s . SetProperty ( x => x . Tags , x => x . Tags . Append ( "another_tag" ) ) ,
241241 rowsAffectedCount : 1 ) ) ;
0 commit comments