예제 #1
0
            public void RegisterStronglyTypedHandlerHasExpectedResult()
            {
                var @event = new object();

                _sut.Register <object>(played => { @event.ShouldBeSameAs(played); });

                _sut.Play(@event);
            }
예제 #2
0
            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();
            }
예제 #3
0
            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();
            }
예제 #4
0
 private void btnPlay_Click(object sender, EventArgs e)
 {
     eventPlayer.Play(events);
 }