public static void MessagesModule( this ConfigurableBootstrapper.ConfigurableBootstrapperConfigurator config, IMessageListViewModelRetriever messageListViewModelRetriever, IHandlerFactory handlerFactory) { config.Module <MessagesNancyModule>(); config.Dependencies <IMessageListViewModelRetriever>(messageListViewModelRetriever); config.Dependencies <IHandlerFactory>(handlerFactory); }
public static void StoresModule( this ConfigurableBootstrapper.ConfigurableBootstrapperConfigurator config, IMessageStoreActivationStateListViewModelRetriever storeListRetriever, IMessageStoreViewerModelRetriever storeRetriever, IMessageListViewModelRetriever messageListRetriver) { config.Module <StoresNancyModule>(); config.Dependencies <IMessageStoreActivationStateListViewModelRetriever>(storeListRetriever); config.Dependencies <IMessageStoreViewerModelRetriever>(storeRetriever); config.Dependencies <IMessageListViewModelRetriever>(messageListRetriver); }