public void Write_read() { const string EVENTFILENAME = "event.txt"; File.Delete(EVENTFILENAME); var sut = new FileStore(); var e = new RecordedEvent(Guid.NewGuid(), new DateTime(2000, 5, 12, 10, 11, 12), "42", "e", "c", "d1\nd2"); sut.Write(EVENTFILENAME, e); var r = sut.Read(EVENTFILENAME); Equalidator.AreEqual(r, e); }
public Player(string folderpath, FileStore filestore) { _folderpath = folderpath; _filestore = filestore; _predicates = new List<Func<IRecordedEvent, bool>>(); }
public FolderBlackBox(string folderpath) { if (!Directory.Exists(folderpath)) Directory.CreateDirectory(folderpath); _folderpath = folderpath; _filestore = new FileStore(); }
public Player(string folderpath, FileStore filestore) { _folderpath = folderpath; _filestore = filestore; _predicates = new List <Func <IRecordedEvent, bool> >(); }