public void Establish()
 {
     _browser = new Browser(new ConfigurableBootstrapper(with =>
     {
         var stores = new List <MessageStoreConfig>
         {
             MessageStoreConfig.Create("store1", typeof(MsSqlMessageStore).FullName, "conn1", "table1"),
             MessageStoreConfig.Create("store2", typeof(MsSqlMessageStore).FullName, "conn2", "table2")
         };
         var activationListModelRetriever = new FakeActivationListModelRetriever(new MessageStoreActivationStateListModel(stores));
         with.Module(new StoresNancyModule(activationListModelRetriever, new FakeMessageStoreViewerModelRetriever(), new FakeMessageListViewModelRetriever()));
     }));
 }
Exemplo n.º 2
0
        public RetrieveMessageStoreContentTypeJsonTests()
        {
            _browser = new Browser(new ConfigurableBootstrapper(with =>
            {
                var stores = new List <MessageStoreConfig>
                {
                    MessageStoreConfig.Create("store1", typeof(MsSqlMessageStore).FullName, "conn1", "table1"),
                    MessageStoreConfig.Create("store2", typeof(MsSqlMessageStore).FullName, "conn2", "table2")
                };
                var messageStoreActivationStateListViewModelRetriever = new FakeActivationListModelRetriever(new MessageStoreActivationStateListModel(stores));
                var viewrModelRetriever = new FakeMessageStoreViewerModelRetriever(new MessageStoreViewerModel());
                var retriever           = new FakeMessageListViewModelRetriever();

                with.Module(new StoresNancyModule(messageStoreActivationStateListViewModelRetriever, viewrModelRetriever, retriever));
            }));
        }
Exemplo n.º 3
0
        public void Establish()
        {
            _browser = new Browser(new ConfigurableBootstrapper(with =>
            {
                var stores = new List <paramore.brighter.commandprocessor.messageviewer.Ports.Domain.Config.MessageStoreConfig>
                {
                    MessageStoreConfig.Create("store1", typeof(MsSqlMessageStore).FullName, "conn1", "table1"),
                    MessageStoreConfig.Create("store2", typeof(MsSqlMessageStore).FullName, "conn2", "table2")
                };
                var messageStoreActivationStateListViewModelRetriever = new FakeActivationListModelRetriever(new MessageStoreActivationStateListModel(stores));
                var viewrModelRetriever = new FakeMessageStoreViewerModelRetriever(new MessageStoreViewerModel());
                var retriever           = new FakeMessageListViewModelRetriever();

                with.Module(new StoresNancyModule(messageStoreActivationStateListViewModelRetriever, viewrModelRetriever, retriever));
            }));
        }
 public static MessageStoreConfig Create(string name, string type, string connectionString, string tableName)
 {
     return(MessageStoreConfig.Create(name, type, connectionString, tableName));
 }