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); }
public void SaveToFile(string fileName) { XmlInteractionHelper.WriteToXmlFile(Vehicles, fileName); }
public void SaveToFileSort <T>(string fileName, Func <Vehicle, T> comparer) { XmlInteractionHelper.WriteToXmlFile(Vehicles.OrderBy(comparer).ToList(), fileName); }
public void SaveToFileProection <T>(string fileName, Func <Vehicle, bool> function, Func <Vehicle, T> condition) { XmlInteractionHelper.WriteToXmlFile(Vehicles.Where(function).Select(condition).ToList(), fileName); }
public void SaveToFileWithCondition(string fileName, Func <Vehicle, bool> function) { XmlInteractionHelper.WriteToXmlFile(Vehicles.Where(function).ToList(), fileName); }