Esempio n. 1
0
        public void CanIndexAndRetrieveWithCustomConverterViaSettings()
        {
            Action <SearchIndexClient> customizeSettings =
                client =>
            {
                var converter = new CustomBookConverter <CustomBook>();
                converter.Install(client);
            };

            Run(() => TestCanIndexAndRetrieveWithCustomConverter <CustomBook>(customizeSettings));
        }
Esempio n. 2
0
        protected void TestCanSearchWithCustomConverterViaSettings()
        {
            Action <SearchIndexClient> customizeSettings =
                client =>
            {
                var converter = new CustomBookConverter <CustomBook>();
                converter.Install(client);
            };

            TestCanSearchWithCustomConverter <CustomBook>(customizeSettings);
        }
Esempio n. 3
0
        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);
        }