private void WriteToXmlFileMethodTestHelper <T>(Action <string, string> action, List <T> objects, string fileName, string resFileName)
        {
            XmlInteractionHelper.WriteToXmlFile(objects, fileName);
            XmlDocument xmlDocument = new XmlDocument();

            xmlDocument.Load(fileName);
            action(fileName, resFileName);
        }
Example #2
0
 public void SaveToFile(string fileName)
 {
     XmlInteractionHelper.WriteToXmlFile(Vehicles, fileName);
 }
Example #3
0
 public void SaveToFileSort <T>(string fileName, Func <Vehicle, T> comparer)
 {
     XmlInteractionHelper.WriteToXmlFile(Vehicles.OrderBy(comparer).ToList(), fileName);
 }
Example #4
0
 public void SaveToFileProection <T>(string fileName, Func <Vehicle, bool> function, Func <Vehicle, T> condition)
 {
     XmlInteractionHelper.WriteToXmlFile(Vehicles.Where(function).Select(condition).ToList(), fileName);
 }
Example #5
0
 public void SaveToFileWithCondition(string fileName, Func <Vehicle, bool> function)
 {
     XmlInteractionHelper.WriteToXmlFile(Vehicles.Where(function).ToList(), fileName);
 }