diff --git a/ConsoleApp1/Program.cs b/ConsoleApp1/Program.cs index 91d4772..52a2525 100644 --- a/ConsoleApp1/Program.cs +++ b/ConsoleApp1/Program.cs @@ -1,6 +1,10 @@ // See https://aka.ms/new-console-template for more information -using Schnittstelle.Import.XML.v2006; + +using Schnittstelle.Contract; +using Schnittstelle.Import.XML.v2013; using System.Diagnostics; -XML2006 xml = new XML2006("../../../../test_code.xml"); +ISchnittstelleImporter xml = new XML2013("../../../../test_code.xml"); + +var s = xml.KanalObjekte; Debugger.Break(); diff --git a/Schnittstelle/Contract/ISchnittstelleImporter.cs b/Schnittstelle/Contract/ISchnittstelleImporter.cs new file mode 100644 index 0000000..d27c8a4 --- /dev/null +++ b/Schnittstelle/Contract/ISchnittstelleImporter.cs @@ -0,0 +1,12 @@ +using Schnittstelle.Import.XML.v2013.Model; +using System; +using System.Collections.Generic; +using System.Text; + +namespace Schnittstelle.Contract +{ + public interface ISchnittstelleImporter + { + List KanalObjekte { get; } + } +} diff --git a/Schnittstelle/Import/XML/v2013/XML2013.cs b/Schnittstelle/Import/XML/v2013/XML2013.cs index 1aed744..a90f15f 100644 --- a/Schnittstelle/Import/XML/v2013/XML2013.cs +++ b/Schnittstelle/Import/XML/v2013/XML2013.cs @@ -1,4 +1,5 @@ -using Schnittstelle.Import.XML.v2013.Model; +using Schnittstelle.Contract; +using Schnittstelle.Import.XML.v2013.Model; using System; using System.Collections.Generic; using System.IO; @@ -9,9 +10,9 @@ using System.Xml; namespace Schnittstelle.Import.XML.v2013 { - public class XML2013 + public class XML2013 : ISchnittstelleImporter { - private string xmlFile; + private string xmlFile = ""; private List stammdaten = null; private List inspektionsdaten = null; private XmlNamespaceManager manager = null;