コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        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());
        }