private async Task <long> AggressiveCacheOnLazilyLoadTest( IDocumentStore store, TestCaseHolder testCaseHolder, AggressiveCacheMode doNotTrackChanges, bool createVersion2 = true) { return(await AggressiveCacheOnLazilyLoadTest(store, testCaseHolder.LoadFunc, doNotTrackChanges, createVersion2)); }
public async Task LazilyLoad_WhenDoNotTrackChanges_ShouldNotCreateExtraRequest(string caseName, TestCaseHolder testCaseHolder) { using var store = GetDocumentStore(); var numberOfRequest = await AggressiveCacheOnLazilyLoadTest(store, testCaseHolder, AggressiveCacheMode.DoNotTrackChanges); Assert.Equal(0, numberOfRequest); }