Beispiel #1
0
        public void Processor(XmlRooting xmlRooting)
        {
            var downloadedData = _downloader.Get(xmlRooting.SourceUrl);
            var products       = _productCreator.Create(downloadedData);
            var xmlDocument    = _generator.Generate(products);

            xmlDocument.Save(xmlRooting.TargetFilePath);
        }
Beispiel #2
0
        public void Test()
        {
            //Arrange
            var sourceUrl      = "https://egeszsegkonyha.hu/index.php/etlapunk?week=202103";
            var targetFilePath = @"d:\work\FHCN\Menu_Generator.Thief.Tests\Products.xml";

            var xmlRooting = new XmlRooting(sourceUrl,
                                            targetFilePath);

            //Act
            _service.Processor(xmlRooting);

            //Assert
        }