public void WhenPushingSubscribedEvent_ThenDoesCallsSubscriber()
{
var stream = new EventStream();
var called = false;
using (var subscription = stream.Of<PatientEnteredHospital>().Subscribe(c => called = true))
{
stream.Push(new PatientEnteredHospital());
}
Assert.True(called);
}