public void TestUUIDReturnValueParsing() { using (ShimsContext.Create()) { ///Fake the response System.Net.Fakes.ShimWebClient.AllInstances.DownloadStringString = (c, u) => { return("{uuids: [\"364fc3facb6936fd23b22ec8195e923f\"]}"); }; var session = new CloudantSession("https://cloudant.com"); var id = session.GetID(); Assert.AreEqual("364fc3facb6936fd23b22ec8195e923f", id); }; }
public void TestUUIDReturnValueParsing() { using (ShimsContext.Create()) { ///Fake the response System.Net.Fakes.ShimWebClient.AllInstances.DownloadStringString = (c,u) => { return "{uuids: [\"364fc3facb6936fd23b22ec8195e923f\"]}"; }; var session = new CloudantSession("https://cloudant.com"); var id = session.GetID(); Assert.AreEqual("364fc3facb6936fd23b22ec8195e923f", id); }; }