Esempio n. 1
0
        public override void DoTest()
        {
            Log4NetHelper.Configure("TEST");

            var si = new IntegrationService();

            ArtWrapper[] items;
            var          path = @"Data\ArtWrapper.xml";
            //var path = @"Data\ArtWrapper_SpeedTest.xml";
            var serialiser = new XmlSerializer(typeof(ArtWrapper[]));

            using (TextReader reader = new StreamReader(path))
            {
                items = (ArtWrapper[])serialiser.Deserialize(reader);
                reader.Close();
            }

            //var startTime = DateTime.Now;
            var result = si.ArtPackageLoad(items);
            //var endresult = string.Format("Загружено за {0}", DateTime.Now - startTime);
        }