private void InsertAndRead(IEvent @event) { _eventToPublishRepository.Add(@event); _eventToPublishRepository.UnitOfWork.Commit(); var eventToPublish = _eventToPublishRepository.Read(@event.Id); _retrievedEvent = _eventToPublishSerializer.Deserialize(eventToPublish); }
public EventToPublish Read(Guid id) { return(_eventToPublishRepository.Read(id)); }