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

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

            TestCanSearchWithCustomConverter <CustomBook>(customizeSettings);
        }
Exemplo 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);
        }