protected override async Task <PayLoad> FetchPayloadAsync(int WithIndex = 0) { string result = await Client.GetStringAsync($"{Url}?index={WithIndex}"); PayLoad p = PayLoad.FromXML(result); return(p); }
public void TestMethod1() { PayLoad p1 = new PayLoad { From = 3, Saying = "Hello World" }; string s = p1.ToXML(); PayLoad p2 = PayLoad.FromXML(s); Assert.IsTrue(p2.From == 3, "XML Parsing failed for From field"); Assert.IsTrue(p2.Saying.Equals("Hello World"), "XML Parsing failed for Saying field"); }