public void Given_AppendsEventsToStorage() { var expected = new IDomainEvent[] { new FakeDomainEvent() }; _sut.Given(expected); var actual = _storage.ReadEvents("") .Result .Select(e => e.Body); Assert.Equal(expected, actual); }
public void Given(params IDomainEvent[] events) { _scenarios.Given(events); }