public PayAsYouGoAccount FindBy(Guid id)
{
var streamName = string.Format("{0}-{1}", typeof(PayAsYouGoAccount).Name, id.ToString());
// Check for snapshots
var fromEventNumber = 0;
var toEventNumber = int.MaxValue ;
// pull back all events from snapshot
var stream = _eventStore.GetStream(streamName, fromEventNumber, toEventNumber);
var payAsYouGoAccount = new PayAsYouGoAccount();
foreach(var @event in stream)
{
payAsYouGoAccount.Apply(@event);
}
return payAsYouGoAccount;
}