public void TestSettingRevWithEmptyRevisionID()
        {
            string document = "{\"id\":\"test\"}";
            var    session  = new CloudantSession("https://cloudant.com");
            var    actual   = session.SetRev(document, "");

            Assert.AreEqual(document, actual);
        }
        public void TestSettingRev()
        {
            string document = "{\"id\":\"test\"}";
            string expected = "{\"_rev\":\"364fc3facb6936fd23b22ec8195e923f\",\"id\":\"test\"}";
            var    session  = new CloudantSession("https://cloudant.com");
            var    actual   = session.SetRev(document, "364fc3facb6936fd23b22ec8195e923f");

            Assert.AreEqual(expected, actual);
        }
        public void TestSettingRevForInvalidJson()
        {
            var session = new CloudantSession("https://cloudant.com");

            session.SetRev("", "364fc3facb6936fd23b22ec8195e923f");
        }
 public void TestSettingRevWithEmptyRevisionID()
 {
     string document = "{\"id\":\"test\"}";
     var session = new CloudantSession("https://cloudant.com");
     var actual = session.SetRev(document, "");
     Assert.AreEqual(document, actual);
 }
 public void TestSettingRevForInvalidJson()
 {
     var session = new CloudantSession("https://cloudant.com");
     session.SetRev("", "364fc3facb6936fd23b22ec8195e923f");
 }
 public void TestSettingRev()
 {
     string document = "{\"id\":\"test\"}";
     string expected = "{\"_rev\":\"364fc3facb6936fd23b22ec8195e923f\",\"id\":\"test\"}";
     var session = new CloudantSession("https://cloudant.com");
     var actual = session.SetRev(document, "364fc3facb6936fd23b22ec8195e923f");
     Assert.AreEqual(expected, actual);
 }