Skip to content

Commit

Permalink
Merge pull request #67 from holytshirt/master
Browse files Browse the repository at this point in the history
Allow overriding of this test by other container implementations
  • Loading branch information
holytshirt committed Aug 21, 2014
2 parents bdacbd2 + 339d766 commit 5af9827
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/OpenRasta.Tests.Unit/DI/when_resolving_instances.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ public void a_dependency_registered_in_one_context_is_not_registered_in_another(
Resolver.AddDependency<IContextStore, AmbientContextStore>();

using (new ContextScope(scope1))
{
Resolver.AddDependencyInstance<TheClass>(objectForScope1, DependencyLifetime.PerRequest);
}

using (new ContextScope(scope2))
{
Expand Down Expand Up @@ -184,7 +186,7 @@ public void a_type_registered_as_transient_gets_an_instance_stored_in_context_in
}

[Test]
public void a_type_registered_as_transient_gets_an_instance_which_is_created_with_another_instance_and_is_registered_as_perwebrequest()
public virtual void a_type_registered_as_transient_gets_an_instance_which_is_created_with_another_instance_and_is_registered_as_perwebrequest()
{
Resolver.AddDependency<IContextStore,AmbientContextStore>();

Expand All @@ -199,7 +201,6 @@ public void a_type_registered_as_transient_gets_an_instance_which_is_created_wit

var dependentClass = Resolver.Resolve<TheDependentClassThatNeedsYou>();
dependentClass.ShouldNotBeNull();

}
}

Expand Down

0 comments on commit 5af9827

Please sign in to comment.