public async Task AddManualStackSignatureData(string dataKey, string dataValue, bool willAddManualStackSignature) { var plugin = new ManualStackingPlugin(); var data = new DataDictionary() { { dataKey, dataValue } }; var context = new EventContext(new PersistentEvent { Data = data }); await plugin.EventBatchProcessingAsync(new List<EventContext> { context }); Assert.Equal(willAddManualStackSignature, context.StackSignatureData.Count > 0); }
public async Task AddManualStackSignatureData(string stackingKey, bool willAddManualStackSignature) { var ev = new PersistentEvent(); ev.SetManualStackingKey(stackingKey); var context = new EventContext(ev); var plugin = new ManualStackingPlugin(); await plugin.EventBatchProcessingAsync(new List<EventContext> { context }); Assert.Equal(willAddManualStackSignature, context.StackSignatureData.Count > 0); }