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);
        }
예제 #2
0
 public void Given(params IDomainEvent[] events)
 {
     _scenarios.Given(events);
 }