This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ------------ | |
| // counterStore.js | |
| // ------------ | |
| import { | |
| INCREMENT_COUNTER, | |
| DECREMENT_COUNTER | |
| } from '../constants/ActionTypes'; | |
| const initialState = { counter: 0 }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This script will set up (and install if needed) Apache Solr for a Sitecore instance. | |
| # This does NOT configure Sitecore to use Solr, | |
| # just the Solr server and cores for Sitecore to connect to once it is set up to use Solr. | |
| # So, what does it do? | |
| # | |
| # * Installs SOLR, if needed, from the Bitnami SOLR stack: https://bitnami.com/stack/solr/installer | |
| # * Creates a SOLR config set for the cores to share (shared schema) | |
| # * Creates SOLR cores for all Sitecore indexes, including secondary cores to support online reindexing (Switch on Rebuild) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Testing | |
| { | |
| public class NewsController_LatestNews | |
| { | |
| [Theory] | |
| [AutoData] | |
| public void Should_be_news_items_ordered_by_date_descending(IEnumerable<NewsResultItem> newsResultItems) | |
| { | |
| var searchContext = Substitute.For<IProviderSearchContext>(); | |
| var queryable = new LuceneProviderQueryableStub(enumerable); |
OlderNewer