Permalink
Browse files

Merge pull request #55 from chriswoerz/master

More interface coverage to facilitate testing.
  • Loading branch information...
2 parents 567367b + 4bab104 commit c0c8dcae805f54db230bd986d0559d5e5e0cc533 @soitgoes committed Nov 11, 2013
Showing with 10 additions and 1 deletion.
  1. +2 −0 LoveSeat/Interfaces/IDocumentDatabase.cs
  2. +7 −0 LoveSeat/Interfaces/IViewResult.cs
  3. +1 −1 LoveSeat/ViewResult.cs
@@ -118,5 +118,7 @@ public interface IDocumentDatabase
/// </summary>
/// <param name="timeoutMs">The timeout value, in milliseconds.</param>
void SetTimeout(int timeoutMs);
+
+ void SetDefaultDesignDoc(string designDoc);
}
}
@@ -1,9 +1,16 @@
using System.Collections.Generic;
using System.Net;
+using LoveSeat.Support;
using Newtonsoft.Json.Linq;
namespace LoveSeat.Interfaces
{
+ public interface IViewResult<T> : IViewResult
+ {
+ CouchDictionary<T> Dictionary { get; }
+ IEnumerable<T> Items { get; }
+ }
+
public interface IViewResult : System.IEquatable<IListResult>
{
JObject Json { get; }
View
@@ -10,7 +10,7 @@
namespace LoveSeat
{
- public class ViewResult<T> : ViewResult
+ public class ViewResult<T> : ViewResult, IViewResult<T>
{
private readonly IObjectSerializer objectSerializer = null;
private CouchDictionary<T> dict = null;

0 comments on commit c0c8dca

Please sign in to comment.