Esempio n. 1
0
        public NotesController(INotesStorage iNotesStorage)
        {
            _iNotesStorage = iNotesStorage;
            NotesStorage notesStorage = new NotesStorage();

            notesStorage.OpenNotes("Storage/Notes.json");
        }
Esempio n. 2
0
 public void OpenNotes_NonExistingFile_CreatedFile()
 {
     File.Delete(fileName);
     notesStorage.OpenNotes(fileName);
     Assert.AreEqual(true, File.Exists(fileName));
 }