@@ -45,17 +45,17 @@ await store
45
45
await store . SetEffectResult ( functionId , storedEffect2 ) ;
46
46
storedEffects = await store . GetEffectResults ( functionId ) ;
47
47
storedEffects . Count . ShouldBe ( 2 ) ;
48
- storedEffects [ 0 ] . ShouldBe ( storedEffect1 ) ;
49
- storedEffects [ 1 ] . ShouldBe ( storedEffect2 ) ;
48
+ storedEffects . Any ( s => s == storedEffect1 ) . ShouldBeTrue ( ) ;
49
+ storedEffects . Any ( s => s == storedEffect2 ) . ShouldBeTrue ( ) ;
50
50
51
51
await store . SetEffectResult ( functionId , storedEffect2 ) ;
52
52
await store . GetEffectResults ( functionId ) ;
53
53
54
54
await store . SetEffectResult ( functionId , storedEffect2 ) ;
55
55
storedEffects = await store . GetEffectResults ( functionId ) ;
56
56
storedEffects . Count . ShouldBe ( 2 ) ;
57
- storedEffects [ 0 ] . ShouldBe ( storedEffect1 ) ;
58
- storedEffects [ 1 ] . ShouldBe ( storedEffect2 ) ;
57
+ storedEffects . Any ( s => s == storedEffect1 ) . ShouldBeTrue ( ) ;
58
+ storedEffects . Any ( s => s == storedEffect2 ) . ShouldBeTrue ( ) ;
59
59
}
60
60
61
61
public abstract Task SingleEffectWithResultLifeCycle ( ) ;
@@ -149,17 +149,17 @@ await store
149
149
. SelectAsync ( sas => sas . Count ( ) == 2 )
150
150
. ShouldBeTrueAsync ( ) ;
151
151
152
- await store . DeleteEffectResult ( functionId , storedEffect2 . EffectId . ToStoredEffectId ( ) , isState : false ) ;
152
+ await store . DeleteEffectResult ( functionId , storedEffect2 . EffectId . ToStoredEffectId ( ) ) ;
153
153
var storedEffects = await store . GetEffectResults ( functionId ) ;
154
154
storedEffects . Count . ShouldBe ( 1 ) ;
155
155
storedEffects [ 0 ] . EffectId . ShouldBe ( storedEffect1 . EffectId ) ;
156
156
157
- await store . DeleteEffectResult ( functionId , storedEffect2 . EffectId . ToStoredEffectId ( ) , isState : false ) ;
157
+ await store . DeleteEffectResult ( functionId , storedEffect2 . EffectId . ToStoredEffectId ( ) ) ;
158
158
storedEffects = await store . GetEffectResults ( functionId ) ;
159
159
storedEffects . Count . ShouldBe ( 1 ) ;
160
160
storedEffects [ 0 ] . EffectId . ShouldBe ( storedEffect1 . EffectId ) ;
161
161
162
- await store . DeleteEffectResult ( functionId , storedEffect1 . EffectId . ToStoredEffectId ( ) , isState : false ) ;
162
+ await store . DeleteEffectResult ( functionId , storedEffect1 . EffectId . ToStoredEffectId ( ) ) ;
163
163
await store
164
164
. GetEffectResults ( functionId )
165
165
. SelectAsync ( sas => sas . Any ( ) )
@@ -268,15 +268,14 @@ protected async Task BulkInsertTest(Task<IEffectsStore> storeTask)
268
268
Result : "some result 2" . ToUtf8Bytes ( ) ,
269
269
StoredException : null
270
270
) ;
271
-
272
-
271
+
273
272
await store . SetEffectResults ( storedId , [ storedEffect1 , storedEffect2 ] ) ;
274
273
275
274
var effects = await store . GetEffectResults ( storedId ) ;
276
275
effects . Count . ShouldBe ( 2 ) ;
277
- effects [ 0 ] . EffectId . ShouldBe ( storedEffect1 . EffectId ) ;
278
- effects [ 0 ] . Result . ShouldBe ( "some result 1" . ToUtf8Bytes ( ) ) ;
279
- effects [ 1 ] . EffectId . ShouldBe ( storedEffect2 . EffectId ) ;
280
- effects [ 1 ] . Result . ShouldBe ( "some result 2" . ToUtf8Bytes ( ) ) ;
276
+ var effect1 = effects . Single ( e => e . EffectId == storedEffect1 . EffectId ) ;
277
+ effect1 . Result . ShouldBe ( "some result 1" . ToUtf8Bytes ( ) ) ;
278
+ var effect2 = effects . Single ( e => e . EffectId == storedEffect2 . EffectId ) ;
279
+ effect2 . Result . ShouldBe ( "some result 2" . ToUtf8Bytes ( ) ) ;
281
280
}
282
281
}
0 commit comments