Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public Player(string folderpath, FileStore filestore)
 {
     _folderpath = folderpath;
     _filestore = filestore;
     _predicates = new List<Func<IRecordedEvent, bool>>();
 }
Ejemplo n.º 3
0
 public FolderBlackBox(string folderpath)
 {
     if (!Directory.Exists(folderpath)) Directory.CreateDirectory(folderpath);
     _folderpath = folderpath;
     _filestore = new FileStore();
 }
Ejemplo n.º 4
0
 public Player(string folderpath, FileStore filestore)
 {
     _folderpath = folderpath;
     _filestore  = filestore;
     _predicates = new List <Func <IRecordedEvent, bool> >();
 }