Esempio n. 1
0
        public void RequestProcessTest(string row)
        {
            var settings = ContainerHolder.Container.Resolve <IRequestSettings>();
            var districtCollectionJsonWriter = new DistrictCollectionDataResolver(settings);
            var html = districtCollectionJsonWriter.RequestProcess();

            Assert.IsTrue(html.Contains(row));
        }
        public void CountTest()
        {
            var settings = ContainerHolder.Container.Resolve <IRequestSettings>();
            var districtCollectionDataResolver = new DistrictCollectionDataResolver(settings);
            var html = districtCollectionDataResolver.RequestProcess();
            DistrictCollectionParser dataParser = new DistrictCollectionParser();
            var data = dataParser.ParseDistricts(html);

            Assert.AreEqual(18, data.Count);
        }