예제 #1
0
        public void Should_throw_when_null()
        {
            // Arrange
            PolicyContainer policyContainer = null;

            // Act & Assert
            Assert.Throws <ArgumentNullException>(() => Runtime.AddPolicyContainer(policyContainer));
        }
예제 #2
0
 private PolicyContainer AddPolicyContainerFor(string controllerName, string actionName)
 {
     return(Runtime.AddPolicyContainer(new PolicyContainer(controllerName, actionName, PolicyAppender)));
 }