Skip to content

Commit

Permalink
Allow overriding of this test by other container implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
Toby Henderson committed Aug 21, 2014
1 parent 29c54de commit a9171ae
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 a9171ae

Please sign in to comment.