public void XmlRepositoryModelLoadTest() { Repository = new XmlRepository(new XmlRepositorySettings(XmlFilePath, FileMode.Create)); AddTestDataToRepository(); Repository.SaveChanges(); Repository = new XmlRepository(new XmlRepositorySettings(XmlFilePath, FileMode.Open)); Assert.IsTrue(Repository.GetOrders().Any()); Assert.IsTrue(Repository.GetCustomers().Any()); }