public FileSystemStorer(RepositoryHierarchy repositoryHierarchy, IEventWriter eventWriter) { if (repositoryHierarchy == null) throw new ArgumentNullException("repositoryHierarchy"); if (eventWriter == null) throw new ArgumentNullException("eventWriter"); _repositoryHierarchy = repositoryHierarchy; _eventWriter = eventWriter; }
public FileSystemPersistenceStrategy(RepositoryHierarchy repositoryHierarchy, IEventReaderWriterPair eventReaderWriterPair) { if (repositoryHierarchy == null) throw new ArgumentNullException("repositoryHierarchy"); if (eventReaderWriterPair == null) throw new ArgumentNullException("eventReaderWriterPair"); _storer = new FileSystemStorer(repositoryHierarchy, eventReaderWriterPair.Writer); _loader = new FileSystemLoader(repositoryHierarchy, eventReaderWriterPair.Reader); }