private static XmlDocument getXmlDocument() { var loader = new FileLoaderService( "C:/Users/marc.costello/Documents/Visual Studio 2012/Projects/JiraToBitBucket/jira_export.xml"); loader.LoadFile(); return(new ParserService().Parse(loader.XmlData)); }
public static JiraToBitbucketService MockJiraToBitbucketService() { var loader = new FileLoaderService( "C:/Users/marc.costello/Documents/Visual Studio 2012/Projects/JiraToBitBucket/jira_export.xml"); loader.LoadFile(); var xmlDocument = new ParserService().Parse(loader.XmlData); var document = new JiraDocument(xmlDocument); return(new JiraToBitbucketService(document)); }
public static void LoadFile_ThrowExceptionIfXMLFileIsNotARecocognisedExportFromJira() { var loader = new FileLoaderService("C:/Users/marc.costello/Documents/Visual Studio 2012/Projects/JiraToBitBucket/jira_export_invalid.xml"); Should.Throw <FileLoadException>(() => loader.LoadFile()); }