Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
- Added additional specification for verifying expectations on aliase…
Browse files Browse the repository at this point in the history
…d actions.
  • Loading branch information
Kristoffer Ahl committed Oct 13, 2012
1 parent 7ebe6fe commit f1e9e6f
Showing 1 changed file with 12 additions and 0 deletions.
Expand Up @@ -69,6 +69,18 @@ public void Should_verify_expectations_for_aliased_action()

Assert.That(results.Valid(), results.ErrorMessages());
}

[Test]
public void Should_verify_expectations_for_aliased_action_using_convention_configuration()
{
SecurityConfigurator.Configure(configuration => configuration.ForAllControllers().DenyAnonymousAccess());
var policyExpectations = new PolicyExpectations();
policyExpectations.For<SampleController>(a => a.ActualAction()).Has<DenyAnonymousAccessPolicy>();

var results = policyExpectations.VerifyAll(SecurityConfiguration.Current);

Assert.That(results.Valid(), results.ErrorMessages());
}
}

[TestFixture]
Expand Down

0 comments on commit f1e9e6f

Please sign in to comment.