Esempio n. 1
0
        private void InsertAndRead(IEvent @event)
        {
            _eventToPublishRepository.Add(@event);
            _eventToPublishRepository.UnitOfWork.Commit();
            var eventToPublish = _eventToPublishRepository.Read(@event.Id);

            _retrievedEvent = _eventToPublishSerializer.Deserialize(eventToPublish);
        }
Esempio n. 2
0
 public EventToPublish Read(Guid id)
 {
     return(_eventToPublishRepository.Read(id));
 }