public void should_set_the_OverrideResult_property()
        {
            var overrider = new CurrentRequestResultOverride();
            var redirectResult = new RedirectResult("");
            overrider.OverrideIfNotAlreadyOverriden(redirectResult);

            overrider.OverrideResult.ShouldBeTheSameAs(redirectResult);
        }
        public void should_leave_previous_override_in_place()
        {
            var overrider = new CurrentRequestResultOverride();
            var firstResult = new RedirectResult("");
            var secondResult = new RedirectResult("");
            overrider.OverrideIfNotAlreadyOverriden(firstResult);
            overrider.OverrideIfNotAlreadyOverriden(secondResult);

            overrider.OverrideResult.ShouldBeTheSameAs(firstResult);
        }
 protected override void BeforeEach()
 {
     _invoker.Invoke(new Dictionary<string, object>());
     _result = _behavior.Result as RedirectResult;
 }