예제 #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);
        }
예제 #2
0
파일: Player.cs 프로젝트: ralfw/NBlackBox
 public Player(string folderpath, FileStore filestore)
 {
     _folderpath = folderpath;
     _filestore = filestore;
     _predicates = new List<Func<IRecordedEvent, bool>>();
 }
예제 #3
0
 public FolderBlackBox(string folderpath)
 {
     if (!Directory.Exists(folderpath)) Directory.CreateDirectory(folderpath);
     _folderpath = folderpath;
     _filestore = new FileStore();
 }
예제 #4
0
 public Player(string folderpath, FileStore filestore)
 {
     _folderpath = folderpath;
     _filestore  = filestore;
     _predicates = new List <Func <IRecordedEvent, bool> >();
 }