public void RegisterStronglyTypedHandlerHasExpectedResult() { var @event = new object(); _sut.Register <object>(played => { @event.ShouldBeSameAs(played); }); _sut.Play(@event); }
public void HappyPath() { var connectionProvider = new AdoNetConnectionProvider("DefaultConnection"); var player = new EventPlayer( connectionProvider, new ToEventConverter(), new EventPublisher( new UpdateAvailableCategoriesOnCategoryAdded(connectionProvider), new UpdateCategoryTreeOnCategoryAdded(connectionProvider))); player.Play(); }
private void btnPlay_Click(object sender, EventArgs e) { eventPlayer.Play(events); }