protected IHostV30 MockHost()
        {
            if (!Directory.Exists(testDir))
            {
                Directory.CreateDirectory(testDir);
            }

            IHostV30 host = mocks.DynamicMock <IHostV30>();

            Expect.Call(host.GetSettingValue(SettingName.PublicDirectory)).Return(testDir).Repeat.AtLeastOnce();
            Expect.Call(host.PrepareContentForIndexing(null, null)).IgnoreArguments().Do((ToStringDelegate) delegate(PageInfo p, string input) { return(input); }).Repeat.Any();
            Expect.Call(host.PrepareTitleForIndexing(null, null)).IgnoreArguments().Do((ToStringDelegate) delegate(PageInfo p, string input) { return(input); }).Repeat.Any();

            mocks.Replay(host);

            return(host);
        }