Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

finished IMongo conversion

  • Loading branch information...
commit 635c62a83b24df887aacbbe0d035b63cdcfd1455 1 parent 4190638
@atheken authored
View
2  NoRM.Tests/CollectionFindTests/MongoSearchQualifierTests.cs
@@ -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()
{
View
2  NoRM.Tests/CollectionFindTests/QueryTests.cs
@@ -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()
View
2  NoRM.Tests/CollectionFindTests/WhereQualifierTests.cs
@@ -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()
{
View
2  NoRM.Tests/CollectionUpdateTests/UpdateModifiersTests.cs
@@ -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;
View
2  NoRM.Tests/DBTypeTests/GridFSTests.cs
@@ -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()
{
View
6 NoRM.Tests/TestClasses.cs
@@ -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();
View
2  NoRM/BSON/DbTypes/DBReference.cs
@@ -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.
Something went wrong with that request. Please try again.