/// <summary> /// Load your modules or register your services here! /// </summary> /// <param name="kernel">The kernel.</param> private static void RegisterServices(IKernel kernel) { var database = MongoDbInitializer.Init(); kernel.Bind <MongoDatabase>().ToConstant(database); kernel.Bind <IUserRepository>().To <UserRepository>(); kernel.Bind <IIndexedDocumentRepository>().To <IndexedDocumentRepository>(); kernel.Bind <ITokenizer>().To <TextTokenizer>(); kernel.Bind <IStopWordsProvider>().To <RusStopWordsProvider>(); kernel.Bind <IStemmer>().To <RussianStemmer>(); kernel.Bind <IWordCounter>().To <WordCounter>(); kernel.Bind <SearchCore.TextProcessors.DocumentIndexator>().ToSelf(); kernel.Bind <SearchCore.SearchHelpers.RelevancyCounter>().ToSelf(); }
public TestFrameworkInitializer(IMessageSink messageSink) : base(messageSink) { JsonWriterSettings.Defaults.Indent = true; MongoDbInitializer.Init(); }