public void Should_throw_when_null() { // Arrange PolicyContainer policyContainer = null; // Act & Assert Assert.Throws <ArgumentNullException>(() => Runtime.AddPolicyContainer(policyContainer)); }
private PolicyContainer AddPolicyContainerFor(string controllerName, string actionName) { return(Runtime.AddPolicyContainer(new PolicyContainer(controllerName, actionName, PolicyAppender))); }