Thanks, Jeremy! :)
On 10 Nov., 17:08, Jeremy Skinner <
jer...@jeremyskinner.co.uk> wrote:
> You can use Rhino Mocks' Expect extension method as you would with a
> manually-created mock:
>
> var tcb = new TestControllerBuilder();
> tcb.HttpContext.Request.Expect(x => x.UrlReferrer).Return(new Uri("
http://foo"));
>
> Jeremy
>
> On 10 November 2010 14:55, Adrian Grigore <
australiena...@googlemail.com>wrote:
>
> > Hi,
>
> > When using the TestHelper, how can I mock Request.UrlReferrer? I need
> > to set a value for the referrer in my test setup.
>
> > Thanks,
>
> > Adrian
>
> > --
> > Contact Jeffrey Palermo or Eric Hexter with specific questions about the
> > MvcContrib project. Or go tohttp://
mvccontrib.org