public ConceptRepositoryFromFileDatabaseTest() { _db = A.Fake <IFileDB>(); _repository = new ConceptRepositoryFromFileDatabase(conceptsContext); // _db); _conceptsInDatabase = new List <Concept> { new Concept { Title = "TestTitle" }, new Concept { Title = "Another test" }, new Concept { Title = "I am a concept" }, }; //A.CallTo(() => _db.ReadFromFile()).Returns(_conceptsInDatabase); }
public FileDBTest() { _db = new FileDB(); _projectDirectory = System.Environment.CurrentDirectory; _filesDirectory = Path.Join(_projectDirectory, "Files"); }