private Configuration BaseConfig(FluentMockServer server, Func <ConfigurationBuilder, IConfigurationBuilder> extraConfig = null)
        {
            var builderInternal = Configuration.BuilderInternal(_mobileKey)
                                  .EventProcessor(new MockEventProcessor());

            builderInternal
            .BaseUri(new Uri(server.GetUrl()))
            .StreamUri(new Uri(server.GetUrl()))
            .PersistFlagValues(false);      // unless we're specifically testing flag caching, this helps to prevent test state contamination
            var builder = extraConfig == null ? builderInternal : extraConfig(builderInternal);

            return(builder.Build());
        }