public void HistoricalEventsAreNotExposedThroughGetUncommitedChanged() { E historicalEvent = null; Action<E> onApplied = e => { }; var saga = new MySaga(onApplied); saga.LoadsFromHistory(new[] { historicalEvent }); saga.GetUncommittedChanges().Should().Be.Empty(); }
public void HistoricalEventsAreAppliedToTheSaga() { E historicalEvent = null; E appliedEvent = null; Action<E> onApplied = e => appliedEvent = e; var saga = new MySaga(onApplied); saga.LoadsFromHistory(new[] {historicalEvent}); appliedEvent.Should().Be.EqualTo(historicalEvent); }