From 27ec9226c1b218beb1f219f3f32b652ce2d1fc6a Mon Sep 17 00:00:00 2001 From: kolosy Date: Mon, 16 Nov 2009 13:59:01 -0600 Subject: [PATCH 1/2] fix for unit tests. all tests now pass on cdb 0.10 on ubuntu 9.10 and on windows --- Tests/CouchTest.cs | 8 ++++---- Tests/Divan.Test.csproj | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Tests/CouchTest.cs b/Tests/CouchTest.cs index 057c39d..0108f4d 100644 --- a/Tests/CouchTest.cs +++ b/Tests/CouchTest.cs @@ -205,7 +205,7 @@ public void ShouldSaveDocumentWithoutId() private class LittleCar { - public string Id, Rev; + public string _id, _rev; public string Make, Model, docType; } @@ -214,7 +214,7 @@ public void ShouldSaveArbitraryDocument() { var littleCar = new LittleCar() { docType = "car", Make = "Yugo", Model = "Hell if i know" }; littleCar = db.SaveArbitraryDocument(littleCar); - Assert.IsNotNull(littleCar.Id); + Assert.IsNotNull(littleCar._id); } [Test] @@ -222,9 +222,9 @@ public void ShouldLoadArbitraryDocument() { var firstCar = new LittleCar() { docType = "car", Make = "Yugo", Model = "Hell if i know" }; firstCar = db.SaveArbitraryDocument(firstCar); - var otherCar = db.GetArbitraryDocument(firstCar.Id, () => new LittleCar()); + var otherCar = db.GetArbitraryDocument(firstCar._id, () => new LittleCar()); Assert.IsNotNull(otherCar); - Assert.IsNotNull(otherCar.Id); + Assert.IsNotNull(otherCar._id); } [Test] diff --git a/Tests/Divan.Test.csproj b/Tests/Divan.Test.csproj index 2e54dae..7f4b140 100644 --- a/Tests/Divan.Test.csproj +++ b/Tests/Divan.Test.csproj @@ -3,7 +3,7 @@ Debug AnyCPU - 9.0.21022 + 9.0.30729 2.0 {09FB3192-8F25-4112-A8BB-93C83F6C3DDD} Library From 0ad1376e9a2a42284620c5da997756b1e5a70b85 Mon Sep 17 00:00:00 2001 From: kolosy Date: Wed, 25 Nov 2009 22:35:43 -0600 Subject: [PATCH 2/2] authentication support --- Tests/Divan.Test.csproj | 5 +---- src/CouchDatabase.cs | 2 +- src/CouchRequest.cs | 5 ++++- src/CouchServer.cs | 17 ++++++++++++++++- 4 files changed, 22 insertions(+), 7 deletions(-) diff --git a/Tests/Divan.Test.csproj b/Tests/Divan.Test.csproj index 7f4b140..c7cd771 100644 --- a/Tests/Divan.Test.csproj +++ b/Tests/Divan.Test.csproj @@ -3,7 +3,7 @@ Debug AnyCPU - 9.0.30729 + 9.0.21022 2.0 {09FB3192-8F25-4112-A8BB-93C83F6C3DDD} Library @@ -76,9 +76,6 @@ Divan - - -