public async Task Sync_LoadTest_TwoWay() { CreateRandomHobbies(out var sourceDictionary, out var destinationDictionary); await CreateSyncAgent(sourceDictionary, destinationDictionary) .Configure((c) => c.SyncMode.SyncModePreset = SyncModePreset.TwoWay) .SyncAsync(CancellationToken.None).ConfigureAwait(false); AssertionHelper.VerifyDictionariesAreEquivalent(sourceDictionary, destinationDictionary); }
public async Task Sync_LoadTest_MirrorToDestination() { CreateRandomHobbies(out var sourceDictionary, out var destinationDictionary); Dictionary <int, Hobby> expectedSourceDictionary = new Dictionary <int, Hobby>(sourceDictionary) , expectedDestinationDictionary = new Dictionary <int, Hobby>(sourceDictionary); await CreateSyncAgent(sourceDictionary, destinationDictionary) .Configure((c) => c.SyncMode.SyncModePreset = SyncModePreset.MirrorToDestination) .SyncAsync(CancellationToken.None).ConfigureAwait(false); AssertionHelper.VerifyDictionariesAreEquivalent(sourceDictionary, expectedSourceDictionary); AssertionHelper.VerifyDictionariesAreEquivalent(destinationDictionary, expectedDestinationDictionary); }