Skip to content

Commit

Permalink
updated to rhino mocks 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Derick Bailey committed May 21, 2010
1 parent c88a3d2 commit e898e40
Show file tree
Hide file tree
Showing 9 changed files with 2,484 additions and 5,466 deletions.
3,142 changes: 0 additions & 3,142 deletions lib/Castle.Core.XML

This file was deleted.

Binary file removed lib/Castle.Core.dll
Binary file not shown.
Binary file removed lib/Castle.Core.pdb
Binary file not shown.
Binary file removed lib/Castle.DynamicProxy2.dll
Binary file not shown.
Binary file modified lib/Rhino.Mocks.dll
Binary file not shown.
4,777 changes: 2,482 additions & 2,295 deletions lib/Rhino.Mocks.xml

Large diffs are not rendered by default.

25 changes: 0 additions & 25 deletions lib/license.txt

This file was deleted.

4 changes: 1 addition & 3 deletions src/Ninject.RhinoMocks/MockProvider.cs
Expand Up @@ -31,9 +31,7 @@ public MockProvider(Type type)
/// <returns>The created instance.</returns>
public object Create(IContext context)
{
var method = typeof(MockRepository).GetMethod("GenerateMock");
var genericMethod = method.MakeGenericMethod(Type);
return genericMethod.Invoke(null, new object[1] { null });
return MockRepository.GenerateMock(Type, new Type[0], new object[0]);
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Ninject.RhinoMocks/MockingKernel.cs
Expand Up @@ -37,7 +37,7 @@ protected override bool HandleMissingBinding(Type service)
var binding = new Binding(service)
{
ProviderCallback = MockProvider.GetCreationCallback(),
ScopeCallback = new Func<IContext, Object>((IContext ctx) => StaticScope),
ScopeCallback = ctx => StaticScope,
IsImplicit = true
};

Expand Down

0 comments on commit e898e40

Please sign in to comment.