internal static BatterAggregate LoadEvents(IEventStoreConnection conn, String streamId)
        {
            var player = new BatterAggregate();

            var slice = conn.ReadStreamEventsForwardAsync(streamId,
                                                          StreamPosition.Start,
                                                          200,
                                                          false).Result;

            var events = slice.Events.Select(e => JsonConvert.DeserializeObject(Encoding.UTF8.GetString(e.Event.Data), typeof(PlayerWasAtBat)) as EventBase);

            player.LoadFromHistory(events);

            return(player);
        }
        internal static BatterAggregate LoadEvents(IEventStoreConnection conn, String streamId)
        {
            var player = new BatterAggregate();

            var slice = conn.ReadStreamEventsForwardAsync(streamId,
                StreamPosition.Start,
                200,
                false).Result;

            var events = slice.Events.Select(e => JsonConvert.DeserializeObject(Encoding.UTF8.GetString(e.Event.Data), typeof(PlayerWasAtBat)) as EventBase);

            player.LoadFromHistory(events);

            return player;
        }