public void GetAllObjectsOfCertainTypeFromRepositoryTest() { const string connectionString = @"C:\Temp\CrateStorage"; var dc = new FileContext(connectionString, "Test"); var p = new Person { Name = "John Doe", Age = 24, Email = "*****@*****.**" }; var repository = new Repository("ConsoleApp"); repository.Add(p); dc.SubmitChanges(repository); var repositories = dc.GetObjects("ConsoleApp"); Assert.AreNotEqual(0, repositories.Count()); }