Browse files

updated unit tests

  • Loading branch information...
1 parent 02476fe commit 238a226355532142437207583070f5597873cc3b @phillip-haydon committed Oct 3, 2012
View
16 src/Raven.DynamicSession.Tests/EmbeddedRavenDBFixture.cs
@@ -15,18 +15,18 @@ protected IDocumentStore GetStore()
}).Initialize();
}
- protected void Configure(IDocumentStore store, Type type, string bananas)
+ protected void Configure(IDocumentStore store, Type type, string clrPlaceHolder)
{
//TODO: Wrap up the conventions for Raven.DynamicSession
- store.Conventions.FindClrType = (id, doc, metadata) =>
- {
- var clrType = metadata.Value<string>(DynamicSession.DynamicClrTypePlaceHolder);
+store.Conventions.FindClrType = (id, doc, metadata) =>
+{
+ var clrType = metadata.Value<string>(DynamicSession.DynamicClrTypePlaceHolder);
- if (clrType.Equals(bananas, StringComparison.OrdinalIgnoreCase))
- return type.FullName;
+ if (clrType.Equals(clrPlaceHolder, StringComparison.OrdinalIgnoreCase))
+ return type.FullName;
- return metadata.Value<string>(Constants.RavenClrType);
- };
+ return metadata.Value<string>(Constants.RavenClrType);
+};
}
}
}
View
8 src/Raven.DynamicSession.Tests/InsertFixture.cs
@@ -1,10 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using NUnit.Framework;
-using Raven.Client;
+using NUnit.Framework;
namespace Raven.DynamicSession.Tests
{

0 comments on commit 238a226

Please sign in to comment.