Permalink
Browse files

Recased the root namespace to 'Norm' for the pythonistas.

  • Loading branch information...
1 parent e95fb9f commit 58d864a6bbeb00cfedefc964658308236c0df15b @atheken committed Mar 20, 2010
Showing with 265 additions and 265 deletions.
  1. +2 −2 NoRM.Tests/App.config
  2. +2 −2 NoRM.Tests/BSONSerializerTest.cs
  3. +1 −1 NoRM.Tests/CollectionFindTests/MongoSearchQualifierTests.cs
  4. +4 −4 NoRM.Tests/CollectionFindTests/QueryTests.cs
  5. +4 −4 NoRM.Tests/CollectionFindTests/WhereQualifierTests.cs
  6. +4 −4 NoRM.Tests/CollectionUpdateTests/UpdateTests.cs
  7. +2 −2 NoRM.Tests/ConnectionsTests/AuthenticatedFixture.cs
  8. +4 −4 NoRM.Tests/ConnectionsTests/ConnectionProviderFactoryTests.cs
  9. +1 −1 NoRM.Tests/ConnectionsTests/ConnectionStringBuilderTests.cs
  10. +1 −1 NoRM.Tests/ConnectionsTests/ConnectionTest.cs
  11. +1 −1 NoRM.Tests/ConnectionsTests/NormalConnectionProviderAuthenticationTests.cs
  12. +1 −1 NoRM.Tests/ConnectionsTests/NormalConnectionProviderTests.cs
  13. +1 −1 NoRM.Tests/ConnectionsTests/PooledConnectionProviderAuthenticationTests.cs
  14. +1 −1 NoRM.Tests/ConnectionsTests/PooledConnectionProviderTests.cs
  15. +1 −1 NoRM.Tests/ConnectionsTests/QueuedConnectionProviderTests.cs
  16. +3 −3 NoRM.Tests/DBTypeTests/DBRefTests.cs
  17. +1 −1 NoRM.Tests/DBTypeTests/ObjectIdTests.cs
  18. +1 −1 NoRM.Tests/LinqTests/LinqAggregates.cs
  19. +1 −1 NoRM.Tests/LinqTests/LinqDeepGraph.cs
  20. +1 −1 NoRM.Tests/LinqTests/LinqTests.cs
  21. +1 −1 NoRM.Tests/MapReduceTests.cs
  22. +3 −3 NoRM.Tests/MongoAdminTests.cs
  23. +2 −2 NoRM.Tests/MongoCollectionTests.cs
  24. +4 −4 NoRM.Tests/MongoConfigutationTests.cs
  25. +1 −1 NoRM.Tests/MongoContextTest.cs
  26. +7 −7 NoRM.Tests/MongoDatabaseTest.cs
  27. +1 −1 NoRM.Tests/MongoFixture.cs
  28. +2 −2 NoRM.Tests/MongoOptimizationTests.cs
  29. +2 −2 NoRM.Tests/Properties/AssemblyInfo.cs
  30. +7 −7 NoRM.Tests/TestClasses.cs
  31. +1 −1 NoRM/Attributes/MongoIdentifierAttribute.cs
  32. +1 −1 NoRM/Attributes/MongoIgnoreAttribute.cs
  33. +1 −1 NoRM/Attributes/MongoIgnoreIfNullAttribute.cs
  34. +2 −2 NoRM/BSON/BSONSerializer.cs
  35. +1 −1 NoRM/BSON/BSONTypes.cs
  36. +1 −1 NoRM/BSON/BsonDeserializer.cs
  37. +1 −1 NoRM/BSON/BsonHelper.cs
  38. +1 −1 NoRM/BSON/Command.cs
  39. +2 −2 NoRM/BSON/DbTypes/DBReference.cs
  40. +4 −4 NoRM/BSON/DbTypes/GridFile.cs
  41. +1 −1 NoRM/BSON/DbTypes/GridFileChunk.cs
  42. +1 −1 NoRM/BSON/DbTypes/GridReadStream.cs
  43. +2 −2 NoRM/BSON/DbTypes/ObjectId.cs
  44. +1 −1 NoRM/BSON/DbTypes/ObjectIdGenerator.cs
  45. +1 −1 NoRM/BSON/DbTypes/ScopedCode.cs
  46. +1 −1 NoRM/BSON/DbTypes/ScopedCodeGeneric.cs
  47. +1 −1 NoRM/BSON/Document.cs
  48. +1 −1 NoRM/BSON/DocumentExceedsSizeLimitsException.cs
  49. +1 −1 NoRM/BSON/ExpandoProperty.cs
  50. +1 −1 NoRM/BSON/ExpandoProps.cs
  51. +1 −1 NoRM/BSON/Flyweight.cs
  52. +1 −1 NoRM/BSON/IFlyweight.cs
  53. +1 −1 NoRM/BSON/ListHelper.cs
  54. +2 −2 NoRM/BSON/MagicProperty.cs
  55. +1 −1 NoRM/BSON/ModifierCommand.cs
  56. +1 −1 NoRM/BSON/QualifierCommand.cs
  57. +3 −3 NoRM/BSON/TypeHelper.cs
  58. +2 −2 NoRM/Commands/Modifiers/IncrementOperation.cs
  59. +2 −2 NoRM/Commands/Modifiers/M.cs
  60. +2 −2 NoRM/Commands/Qualifiers/AllQualifier.cs
  61. +2 −2 NoRM/Commands/Qualifiers/ExistsQuallifier.cs
  62. +2 −2 NoRM/Commands/Qualifiers/GreaterOrEqualQualifier.cs
  63. +2 −2 NoRM/Commands/Qualifiers/GreaterThanQualifier.cs
  64. +2 −2 NoRM/Commands/Qualifiers/InQualifier.cs
  65. +2 −2 NoRM/Commands/Qualifiers/LessOrEqualQualifier.cs
  66. +2 −2 NoRM/Commands/Qualifiers/LessThanQualifier.cs
  67. +2 −2 NoRM/Commands/Qualifiers/NotEqualQualifier.cs
  68. +2 −2 NoRM/Commands/Qualifiers/NotInQualifier.cs
  69. +3 −3 NoRM/Commands/Qualifiers/Q.cs
  70. +2 −2 NoRM/Commands/Qualifiers/SizeQualifier.cs
  71. +2 −2 NoRM/Commands/Qualifiers/WhereQualifier.cs
  72. +1 −1 NoRM/Configuration/ConfigurationContainer.cs
  73. +1 −1 NoRM/Configuration/IConfigurationContainer.cs
  74. +1 −1 NoRM/Configuration/IMongoConfigurationMap.cs
  75. +1 −1 NoRM/Configuration/IPropertyMappingExpression.cs
  76. +1 −1 NoRM/Configuration/ITypeConfiguration.cs
  77. +1 −1 NoRM/Configuration/ITypedConfigurationGeneric.cs
  78. +1 −1 NoRM/Configuration/MongoConfiguration.cs
  79. +1 −1 NoRM/Configuration/MongoConfigurationMap.cs
  80. +1 −1 NoRM/Configuration/MongoConfigurationTypeMap.cs
  81. +1 −1 NoRM/Configuration/MongoTypeConfiguration.cs
  82. +2 −2 NoRM/Configuration/MongoTypeConfigurationGeneric.cs
  83. +1 −1 NoRM/Configuration/PropertyMappingExpression.cs
  84. +1 −1 NoRM/Connections/Connection.cs
  85. +4 −4 NoRM/Connections/ConnectionProvider.cs
  86. +1 −1 NoRM/Connections/ConnectionProviderFactory.cs
  87. +1 −1 NoRM/Connections/ConnectionStringBuilder.cs
  88. +1 −1 NoRM/Connections/IConnection.cs
  89. +1 −1 NoRM/Connections/IConnectionProvider.cs
  90. +1 −1 NoRM/Connections/IOptionsContainer.cs
  91. +1 −1 NoRM/Connections/NormalConnectionProvider.cs
  92. +1 −1 NoRM/Connections/PooledConnectionProvider.cs
  93. +1 −1 NoRM/Connections/QueuedConnectionProviders.cs
  94. +1 −1 NoRM/Connections/Server.cs
  95. +1 −1 NoRM/Connections/TimedLock.cs
  96. +1 −1 NoRM/CreateCollectionOptions.cs
  97. +1 −1 NoRM/IHideSystemTypes.cs
  98. +2 −2 NoRM/IMongoCollection.cs
  99. +1 −1 NoRM/IMongoCollectionGeneric.cs
  100. +1 −1 NoRM/IMongoGrouping.cs
  101. +1 −1 NoRM/Linq/ExpressionVisitor.cs
  102. +1 −1 NoRM/Linq/IMongoQuery.cs
  103. +2 −2 NoRM/Linq/LinqExtensions.cs
  104. +1 −1 NoRM/Linq/MapReduceResult.cs
  105. +4 −4 NoRM/Linq/MongoQuery.cs
  106. +2 −2 NoRM/Linq/MongoQueryProvider.cs
  107. +3 −3 NoRM/Linq/MongoQueryTranslator.cs
  108. +1 −1 NoRM/Linq/PartialEvaluator.cs
  109. +1 −1 NoRM/Linq/TypeHelper.cs
  110. +3 −3 NoRM/MapReduce.cs
  111. +1 −1 NoRM/MapReduceOptions.cs
  112. +1 −1 NoRM/MapReduceOptionsGeneric.cs
  113. +2 −2 NoRM/Mongo.cs
  114. +3 −3 NoRM/MongoAdmin.cs
  115. +4 −4 NoRM/MongoCollection.cs
  116. +6 −6 NoRM/MongoCollectionGeneric.cs
  117. +5 −5 NoRM/MongoDatabase.cs
  118. +1 −1 NoRM/MongoException.cs
  119. +3 −3 NoRM/Properties/AssemblyInfo.cs
  120. +1 −1 NoRM/Protocol/MessageHeader.cs
  121. +2 −2 NoRM/Protocol/Messages/DeleteMessage.cs
  122. +1 −1 NoRM/Protocol/Messages/GetMoreMessage.cs
  123. +2 −2 NoRM/Protocol/Messages/InsertMessage.cs
  124. +1 −1 NoRM/Protocol/Messages/KillCursorsMessage.cs
  125. +2 −2 NoRM/Protocol/Messages/MapReduceMessage.cs
  126. +3 −3 NoRM/Protocol/Messages/Message.cs
  127. +1 −1 NoRM/Protocol/Messages/QueryMessage.cs
  128. +2 −2 NoRM/Protocol/Messages/QueryMessageGeneric.cs
  129. +1 −1 NoRM/Protocol/Messages/QueryOptions.cs
  130. +2 −2 NoRM/Protocol/Messages/ReplyMessage.cs
  131. +2 −2 NoRM/Protocol/Messages/UpdateMessage.cs
  132. +1 −1 NoRM/Protocol/Messages/UpdateOption.cs
  133. +1 −1 NoRM/Protocol/MongoOp.cs
  134. +1 −1 NoRM/Protocol/SystemMessages/ProfileLevel.cs
  135. +1 −1 NoRM/Protocol/SystemMessages/Requests/AuthenticationRequest.cs
  136. +1 −1 NoRM/Protocol/SystemMessages/Requests/CollectionStatisticsRequest.cs
  137. +1 −1 NoRM/Protocol/SystemMessages/Requests/CreateCollectionRequest.cs
  138. +1 −1 NoRM/Protocol/SystemMessages/Requests/DropDatabaseRequest.cs
  139. +1 −1 NoRM/Protocol/SystemMessages/Requests/ListDatabasesRequest.cs
  140. +1 −1 NoRM/Protocol/SystemMessages/Requests/MongoIndex.cs
  141. +1 −1 NoRM/Protocol/SystemMessages/Responses/AssertInfoResponse.cs
  142. +1 −1 NoRM/Protocol/SystemMessages/Responses/BuildInfoResponse.cs
  143. +1 −1 NoRM/Protocol/SystemMessages/Responses/CollectionInfo.cs
  144. +1 −1 NoRM/Protocol/SystemMessages/Responses/CollectionStatistics.cs
  145. +1 −1 NoRM/Protocol/SystemMessages/Responses/CurrentOperationResponse.cs
  146. +1 −1 NoRM/Protocol/SystemMessages/Responses/DatabaseInfo.cs
  147. +1 −1 NoRM/Protocol/SystemMessages/Responses/DeleteIndicesResponse.cs
  148. +1 −1 NoRM/Protocol/SystemMessages/Responses/DistinctValuesResponse.cs
  149. +1 −1 NoRM/Protocol/SystemMessages/Responses/DroppedCollectionResponse.cs
  150. +2 −2 NoRM/Protocol/SystemMessages/Responses/DroppedDatabaseResponse.cs
  151. +2 −2 NoRM/Protocol/SystemMessages/Responses/ExplainResponse.cs
  152. +1 −1 NoRM/Protocol/SystemMessages/Responses/ForceSyncResponse.cs
  153. +1 −1 NoRM/Protocol/SystemMessages/Responses/GenericCommandResponse.cs
  154. +1 −1 NoRM/Protocol/SystemMessages/Responses/GetNonceResponse.cs
  155. +1 −1 NoRM/Protocol/SystemMessages/Responses/LastErrorResponse.cs
  156. +1 −1 NoRM/Protocol/SystemMessages/Responses/ListDatabasesResponse.cs
  157. +1 −1 NoRM/Protocol/SystemMessages/Responses/MapReduceResponse.cs
  158. +1 −1 NoRM/Protocol/SystemMessages/Responses/PreviousErrorResponse.cs
  159. +1 −1 NoRM/Protocol/SystemMessages/Responses/ProfileLevelResponse.cs
  160. +1 −1 NoRM/Protocol/SystemMessages/Responses/ProfilingInformationResponse.cs
  161. +1 −1 NoRM/Protocol/SystemMessages/Responses/ServerStatusResponse.cs
  162. +1 −1 NoRM/Protocol/SystemMessages/Responses/SetProfileResponse.cs
  163. +1 −1 NoRM/Protocol/SystemMessages/Responses/ValidateCollectionResponse.cs
View
@@ -2,10 +2,10 @@
<configuration>
<appSettings file="config.user">
<add key="connectionStringHost" value="localhost"/>
- <add key="authDbPath" value="c:/data/NoRMAuth/"/>
+ <add key="authDbPath" value="c:/data/NormAuth/"/>
<add key="authDbPort" value="27701"/>
</appSettings>
<connectionStrings>
- <add name="NoRMTests" connectionString="mongodb://localhost/NoRMTests?strict=true"/>
+ <add name="NormTests" connectionString="mongodb://localhost/NormTests?strict=true"/>
</connectionStrings>
</configuration>
@@ -3,10 +3,10 @@
using System.Diagnostics;
using System.Linq;
using System.Text.RegularExpressions;
-using NoRM.BSON;
+using Norm.BSON;
using Xunit;
-namespace NoRM.Tests
+namespace Norm.Tests
{
public class BSONSerializerTest
{
@@ -3,7 +3,7 @@
using System.Linq;
using Xunit;
-namespace NoRM.Tests
+namespace Norm.Tests
{
public class MongoSearchQualifierTests : IDisposable
@@ -1,23 +1,23 @@
using System;
using System.Linq;
-using NoRM.BSON;
+using Norm.BSON;
using Xunit;
-namespace NoRM.Tests
+namespace Norm.Tests
{
public class QueryTests : IDisposable
{
private readonly Mongo _server;
private readonly MongoCollection<Person> _collection;
public QueryTests()
{
- _server = Mongo.ParseConnection("mongodb://localhost/NoRMTests?pooling=false");
+ _server = Mongo.ParseConnection("mongodb://localhost/NormTests?pooling=false");
_collection = _server.GetCollection<Person>("People");
}
public void Dispose()
{
_server.Database.DropCollection("People");
- using (var admin = new MongoAdmin("mongodb://localhost/NoRMTests?pooling=false"))
+ using (var admin = new MongoAdmin("mongodb://localhost/NormTests?pooling=false"))
{
admin.DropDatabase();
}
@@ -1,9 +1,9 @@
using System;
using System.Linq;
-using NoRM.BSON;
+using Norm.BSON;
using Xunit;
-namespace NoRM.Tests
+namespace Norm.Tests
{
public class WhereQualifierTests : IDisposable
@@ -12,13 +12,13 @@ public class WhereQualifierTests : IDisposable
private readonly MongoCollection<TestClass> _collection;
public WhereQualifierTests()
{
- _server = Mongo.ParseConnection("mongodb://localhost/NoRMTests?pooling=false");
+ _server = Mongo.ParseConnection("mongodb://localhost/NormTests?pooling=false");
_collection = _server.GetCollection<TestClass>("TestClasses");
}
public void Dispose()
{
_server.Database.DropCollection("TestClasses");
- using (var admin = new MongoAdmin("mongodb://localhost/NoRMTests?pooling=false"))
+ using (var admin = new MongoAdmin("mongodb://localhost/NormTests?pooling=false"))
{
admin.DropDatabase();
}
@@ -1,23 +1,23 @@
using System;
using System.Linq;
-using NoRM.BSON;
+using Norm.BSON;
using Xunit;
-namespace NoRM.Tests
+namespace Norm.Tests
{
public class UpdateTests : IDisposable
{
private readonly Mongo _server;
private readonly MongoCollection<CheeseClubContact> _collection;
public UpdateTests()
{
- _server = Mongo.ParseConnection("mongodb://localhost/NoRMTests?pooling=false");
+ _server = Mongo.ParseConnection("mongodb://localhost/NormTests?pooling=false");
_collection = _server.GetCollection<CheeseClubContact>("CheeseClubContacts");
}
public void Dispose()
{
_server.Database.DropCollection("CheeseClubContacts");
- using (var admin = new MongoAdmin("mongodb://localhost/NoRMTests?pooling=false"))
+ using (var admin = new MongoAdmin("mongodb://localhost/NormTests?pooling=false"))
{
admin.DropDatabase();
}
@@ -1,11 +1,11 @@
using System.Configuration;
using System;
-namespace NoRM.Tests
+namespace Norm.Tests
{
/// <summary>
/// For Authentication tests, you'll need:
- /// 1- a data base with data at c:/data/NoRMAuth/
+ /// 1- a data base with data at c:/data/NormAuth/
/// 2- use admin;
/// 3- db.addUser('admin', 'admin');
/// 4- use main;
@@ -1,6 +1,6 @@
using Xunit;
-namespace NoRM.Tests
+namespace Norm.Tests
{
public class ConnectionProviderFactoryTests
{
@@ -31,18 +31,18 @@ public void ReturnsDifferentProvidersForDifferentConnectionStrings()
[Fact]
public void ConnectionProviderSupportsConfigFileValues()
{
- var provider = ConnectionProviderFactory.Create("NoRMTests");
+ var provider = ConnectionProviderFactory.Create("NormTests");
Assert.NotNull(provider);
}
[Fact]
public void ConnectionProviderConfigFileValuesMatchConnectionStringGrammar()
{
- Assert.Throws<MongoException>(() => ConnectionProviderFactory.Create("NoRMTestsFail"));
+ Assert.Throws<MongoException>(() => ConnectionProviderFactory.Create("NormTestsFail"));
}
[Fact]
public void ConnectionProviderConfigFailsForMissingConnectionString()
{
- Assert.Throws<MongoException>(() => ConnectionProviderFactory.Create("NoRMTestsFail") );
+ Assert.Throws<MongoException>(() => ConnectionProviderFactory.Create("NormTestsFail") );
}
}
}
@@ -1,7 +1,7 @@
using System;
using Xunit;
-namespace NoRM.Tests
+namespace Norm.Tests
{
public class CreateTests
{
@@ -2,7 +2,7 @@
using System.Net.Sockets;
using Xunit;
-namespace NoRM.Tests
+namespace Norm.Tests
{
public class ConnectionTest
{
@@ -1,6 +1,6 @@
using Xunit;
-namespace NoRM.Tests
+namespace Norm.Tests
{
public class NormalConnectionProviderAuthenticationTests : AuthenticatedFixture
{
@@ -1,6 +1,6 @@
using Xunit;
-namespace NoRM.Tests
+namespace Norm.Tests
{
public class NormalConnectionProviderTests
{
@@ -1,4 +1,4 @@
-namespace NoRM.Tests
+namespace Norm.Tests
{
using Xunit;
@@ -2,7 +2,7 @@
using System;
using Xunit;
-namespace NoRM.Tests
+namespace Norm.Tests
{
public class PooledConnectionProviderTests
{
@@ -4,7 +4,7 @@
using System.Threading;
using Xunit;
-namespace NoRM.Tests
+namespace Norm.Tests
{
public class QueuedConnectionProviderTests
{
@@ -1,10 +1,10 @@
using System.Linq;
-using NoRM.BSON.DbTypes;
-using NoRM.Configuration;
+using Norm.BSON.DbTypes;
+using Norm.Configuration;
using Xunit;
-namespace NoRM.Tests
+namespace Norm.Tests
{
public class DBRefTests
{
@@ -1,6 +1,6 @@
using Xunit;
-namespace NoRM.Tests
+namespace Norm.Tests
{
public class ObjectIdTests
{
@@ -1,7 +1,7 @@
using System.Linq;
using Xunit;
-namespace NoRM.Tests {
+namespace Norm.Tests {
public class LinqAggregates {
public LinqAggregates() {
@@ -2,7 +2,7 @@
using System.Linq;
using Xunit;
-namespace NoRM.Tests
+namespace Norm.Tests
{
public class LinqDeepGraph
{
@@ -2,7 +2,7 @@
using System.Linq;
using Xunit;
-namespace NoRM.Tests
+namespace Norm.Tests
{
public class LinqTests
{
@@ -1,7 +1,7 @@
using System.Linq;
using Xunit;
-namespace NoRM.Tests
+namespace Norm.Tests
{
public class MapReduceTests
{
@@ -3,7 +3,7 @@
using System.Text.RegularExpressions;
using Xunit;
-namespace NoRM.Tests
+namespace Norm.Tests
{
public class MongoAdminTests
{
@@ -17,7 +17,7 @@ public MongoAdminTests()
[Fact]
public void ListsAllDatabases()
{
- var expected = new List<string> { "admin", "NoRMTests", "local" };
+ var expected = new List<string> { "admin", "NormTests", "local" };
//create another database
using (var mongo = Mongo.ParseConnection(TestHelper.ConnectionString()))
@@ -116,7 +116,7 @@ public void DropsDatabase()
{
foreach (var db in admin.GetAllDatabases())
{
- Assert.NotEqual("NoRMTests", db.Name);
+ Assert.NotEqual("NormTests", db.Name);
}
}
}
@@ -1,7 +1,7 @@
using Xunit;
using System.Linq;
-namespace NoRM.Tests
+namespace Norm.Tests
{
public class MongoCollectionTests
@@ -19,7 +19,7 @@ public void SaveOrInsertThrowsExceptionIfTypeDoesntHaveAnId()
using (var mongo = Mongo.ParseConnection(TestHelper.ConnectionString()))
{
var ex = Assert.Throws<MongoException>(() => mongo.GetCollection<Address>("Fake").Save(new Address()));
- Assert.Equal("This collection does not accept insertions/updates, this is due to the fact that the collection's type NoRM.Tests.Address does not specify an identifier property", ex.Message);
+ Assert.Equal("This collection does not accept insertions/updates, this is due to the fact that the collection's type Norm.Tests.Address does not specify an identifier property", ex.Message);
}
}
@@ -1,11 +1,11 @@
using System;
using System.Linq;
-using NoRM.Configuration;
-using NoRM.Linq;
+using Norm.Configuration;
+using Norm.Linq;
using Xunit;
-namespace NoRM.Tests
+namespace Norm.Tests
{
public class MongoConfigutationTests
{
@@ -56,7 +56,6 @@ public void MongoConfigurationMapsCollectionNameToAlias()
public void MongoConfigurationSupportsLambdaSyntaxRegistration()
{
MongoConfiguration.Initialize(r => r.For<User>(u => u.ForProperty(user => user.FirstName).UseAlias("first")));
-
var alias = MongoConfiguration.GetPropertyAlias(typeof(User), "FirstName");
Assert.Equal("first", alias);
@@ -65,6 +64,7 @@ public void MongoConfigurationSupportsLambdaSyntaxRegistration()
[Fact]
public void MongoConfigurationEchoesMissingPropertyNames()
{
+
MongoConfiguration.Initialize(r => r.For<User>(u => u.ForProperty(user => user.FirstName).UseAlias("first"))/*.WithProfileNamed("Sample")*/);
var first = MongoConfiguration.GetPropertyAlias(typeof(User), "FirstName");
@@ -1,5 +1,5 @@
/*
-namespace NoRM.Tests
+namespace Norm.Tests
{
[TestFixture]
[Category("Hits MongoDB")]
Oops, something went wrong.

0 comments on commit 58d864a

Please sign in to comment.