Example #1
0
 public MergeWorkerState(ILog logger,
                         XpathNavigatorMerge xpathNavigatorMerge,
                         Dictionary <string, string> xpathDictionary)
     : this(logger, xpathNavigatorMerge)
 {
     _xpathDictionary = xpathDictionary;
 }
Example #2
0
 public SelectState(ILog logger,
                    XpathNavigatorMerge xpathNavigatorMerge,
                    Dictionary <string, string> xpathDictionary,
                    XmlDocument xmlCombineTargetDoc = null,
                    XmlDocument xmlCombineSourceDoc = null)
     : this(logger, xpathNavigatorMerge, xpathDictionary)
 {
 }
Example #3
0
        public void InitializeTest()
        {
            var xmlDoc       = new XmlDocument();
            var testFileName = string.Format(EmbeddedSourceFileFormat, @"BookStore.xml");

            testFileName.LoadEmbeddedXml(xmlDoc, Assembly.GetExecutingAssembly());

            _xpathNavigatorMerge = new XpathNavigatorMerge(xmlDoc);
            _xpathDictionary     = new Dictionary <string, string>();
            _xpathDictionary.Add("bookstore", "http://www.contoso.com/books");
            _xpathDictionary.Add("book", "http://www.contoso.com/books");
            InitializeConfigXpathNavigatorMerge();
        }
Example #4
0
        private void UpdateLogoutput()
        {
            if (null == _sourceXmlDoc ||
                string.IsNullOrEmpty(_sourceXmlDoc.OuterXml))
            {
                return;
            }
            var targetlogfile = txtLogfileName.Text.Trim();

            if (string.IsNullOrWhiteSpace(targetlogfile))
            {
                return;
            }

            var xpathNavigatorMerger = new XpathNavigatorMerge(_sourceXmlDoc);
            var navDictionary        = new Dictionary <string, string>();

            navDictionary.Add(LogoutputXpath, string.Empty);
            xpathNavigatorMerger.SelectUpdate(navDictionary, targetlogfile);
            _sourceXmlDoc.LoadXml(xpathNavigatorMerger.MergedXmlDoc.OuterXml);
        }
Example #5
0
 public SelectState(ILog logger,
                    XpathNavigatorMerge xpathNavigatorMerge,
                    Dictionary <string, string> xpathDictionary)
     : base(logger, xpathNavigatorMerge, xpathDictionary)
 {
 }
Example #6
0
        private void InitializeConfigXpathNavigatorMerge()
        {
            var configXmlDoc = LoadEmbeddedXmlResource(@"SandboxReplicationFeed.config");

            _testConfigXpathNavigatorMerge = new XpathNavigatorMerge(configXmlDoc);
        }
Example #7
0
 public CreateAttributeState(ILog logger,
                             XpathNavigatorMerge xpathNavigatorMerge,
                             Dictionary <string, string> xpathDictionary)
     : base(logger, xpathNavigatorMerge, xpathDictionary)
 {
 }
Example #8
0
 public MergeWorkerState(ILog logger,
                         XpathNavigatorMerge xpathNavigatorMerge)
     : this(logger)
 {
     _xpathNavigatorMerge = xpathNavigatorMerge;
 }