예제 #1
0
        private static void ConfigureStoreModuleForStoreError(ConfigurableBootstrapper.ConfigurableBootstrapperConfigurator with, MessageStoreViewerModelError messageStoreViewerModelError)
        {
            var listViewRetriever = FakeActivationListModelRetriever.Empty();
            var storeRetriever    = new FakeMessageStoreViewerModelRetriever(messageStoreViewerModelError);
            var messageRetriever  = FakeMessageListViewModelRetriever.Empty();

            with.StoresModule(listViewRetriever, storeRetriever, messageRetriever);
        }
        public static void StoresModule(this ConfigurableBootstrapper.ConfigurableBootstrapperConfigurator config,
                                        IEnumerable <MessageStoreConfig> stores)
        {
            var listViewRetriever = new FakeActivationListModelRetriever(new MessageStoreActivationStateListModel(stores));
            var storeRetriever    = new FakeMessageStoreViewerModelRetriever(new MessageStoreViewerModel(new FakeMessageStore(), stores.FirstOrDefault()));
            var messageRetriever  = new FakeMessageListViewModelRetriever(new MessageListModel(new List <Message>()));

            config.StoresModule(listViewRetriever, storeRetriever, messageRetriever);
        }