Permalink
Browse files

finished IMongo conversion

  • Loading branch information...
1 parent 4190638 commit 635c62a83b24df887aacbbe0d035b63cdcfd1455 @atheken committed Jul 22, 2010
@@ -10,7 +10,7 @@ namespace Norm.Tests
public class MongoSearchQualifierTests : IDisposable
{
private readonly IMongoCollection<TestClass> _coll;
- private readonly Mongo _server;
+ private readonly IMongo _server;
public MongoSearchQualifierTests()
{
@@ -13,7 +13,7 @@ namespace Norm.Tests
{
public class QueryTests : IDisposable
{
- private readonly Mongo _server;
+ private readonly IMongo _server;
private BuildInfoResponse _buildInfo = null;
private readonly IMongoCollection<Person> _collection;
public QueryTests()
@@ -9,7 +9,7 @@ namespace Norm.Tests
public class WhereQualifierTests : IDisposable
{
- private readonly Mongo _server;
+ private readonly IMongo _server;
private readonly IMongoCollection<TestClass> _collection;
public WhereQualifierTests()
{
@@ -8,7 +8,7 @@ namespace Norm.Tests.CollectionUpdateTests
{
public class UpdateModifiersTests : IDisposable
{
- private readonly Mongo _server;
+ private readonly IMongo _server;
private BuildInfoResponse _buildInfo = null;
private readonly IMongoCollection<Post> _collection;
@@ -19,7 +19,7 @@ public class GridFSTests
private MemoryStream _randomBytes = new MemoryStream(10 * 1024 * 1024);
private MD5 _hasher = MD5.Create();
private byte[] _randomByteHash;
- private Mongo _db;
+ private IMongo _db;
public GridFSTests()
{
@@ -103,7 +103,7 @@ public static string ConnectionString(string query, string database, string user
internal class Session : IDisposable
{
- private readonly Mongo _provider;
+ private readonly IMongo _provider;
public Session()
{
@@ -674,9 +674,9 @@ public class Thread
internal class Shoppers : IQueryable<Shopper>, IDisposable
{
- private readonly Mongo _provider;
+ private readonly IMongo _provider;
- public Shoppers(Mongo conn)
+ public Shoppers(IMongo conn)
{
_provider = conn;
this._queryable = conn.GetCollection<Shopper>().AsQueryable();
@@ -114,7 +114,7 @@ public T Fetch(Func<IMongoCollection<T>> referenceCollection)
/// <returns>
/// Referenced type T
/// </returns>
- public T Fetch(Func<Mongo> server)
+ public T Fetch(Func<IMongo> server)
{
return Fetch(() => server().GetCollection<T>());
}

0 comments on commit 635c62a

Please sign in to comment.