Ejemplo n.º 1
0
        public void Case2()
        {
            _dataGenerator = new AddressInfoCsvGenerator();
            var data = _dataGenerator.Generate(csvPath);

            data.Cities = data.Cities.OrderBy(x => x.Name).ThenBy(x => x.Districts.OrderBy(c => c.Name)).ToList();
            Assert.IsNotNull(_dataGenerator.Save(data), "baþarýlý");
        }
Ejemplo n.º 2
0
        public void Case3()
        {
            _dataGenerator = new AddressInfoXmlGenerator();
            var data = _dataGenerator.Generate(xmlPath, x => x.Name == "Ankara", c => c.Districts.OrderBy(v => v.Zips.OrderByDescending(y => y.Code)));

            _dataGenerator = new AddressInfoCsvGenerator();
            Assert.IsNotNull(_dataGenerator.Save(data), "baþarýlý bir þekilde kaydedildi");
        }
Ejemplo n.º 3
0
        public void Case1()
        {
            _dataGenerator = new AddressInfoCsvGenerator();
            var data = _dataGenerator.Generate <API.Model.AddressInfo>(csvPath, query: x => x.Name == "Antalya");

            _dataGenerator = new AddressInfoXmlGenerator();
            Assert.IsNotNull(_dataGenerator.Save(data), "baþarýlý bir þekilde kaydedildi");
        }