public void CanIndexAndRetrieveWithCustomConverterViaSettings() { Action <SearchIndexClient> customizeSettings = client => { var converter = new CustomBookConverter <CustomBook>(); converter.Install(client); }; Run(() => TestCanIndexAndRetrieveWithCustomConverter <CustomBook>(customizeSettings)); }
protected void TestCanSearchWithCustomConverterViaSettings() { Action <SearchIndexClient> customizeSettings = client => { var converter = new CustomBookConverter <CustomBook>(); converter.Install(client); }; TestCanSearchWithCustomConverter <CustomBook>(customizeSettings); }
protected void TestCanSearchWithCustomConverterViaSettings() { void CustomizeSettings(SearchIndexClient client) { var bookConverter = new CustomBookConverter <CustomBook, CustomAuthor>(); bookConverter.Install(client); var authorConverter = new CustomAuthorConverter <CustomAuthor>(); authorConverter.Install(client); } TestCanSearchWithCustomConverter <CustomBook, CustomAuthor>(CustomizeSettings); }