Beispiel #1
0
        private static async Task WebSites()
        {
            var v    = new Verifier();
            var dt   = new ReceiverWeb("http://www.yahoo.com");
            var data = await dt.TransformData(null);

            await v.TransformData(data);

            string file  = Path.Combine(Directory.GetCurrentDirectory(), "ping.xlsx");
            var    excel = new SenderExcel(file);

            data = await excel.TransformData(data);
        }
Beispiel #2
0
        public override BaseObject baseObject()
        {
            if (cache == null)
            {
                cache = new ReceiverWeb(URL)
                {
                    Name = CustomData.Name
                }
            }
            ;

            return(cache);
        }
    }
        public async Task TestAzureDeployWebSite()
        {
            #region arrange
            var r = new ReceiverWeb("https://azurestankins.azurewebsites.net/api/utils/ping");
            #endregion
            #region act
            var dt = await r.TransformData(null);

            #endregion
            #region assert
            dt.Should().NotBeNull();
            dt.DataToBeSentFurther.Should().NotBeNull();
            dt.DataToBeSentFurther.Count.Should().Be(1);
            dt.DataToBeSentFurther.First().Value.Should().NotBeNull();
            dt.DataToBeSentFurther.First().Value.Rows.Count.Should().Be(1);
            var row = dt.DataToBeSentFurther.First().Value.Rows[0];
            row["IsSuccess"].Should().Be(true);
            #endregion
        }