public void TestLoadMongoDBDict_placeNames()
 {
     var mockProviderSetting = new Mock<IDataProviderSetting>();
     mockProviderSetting.Setup(s => s.Uri).Returns("mongodb://localhost:28001");
     mockProviderSetting.Setup(s => s.ProviderType).Returns("MongoDBDataProvider");
     mockProviderSetting.Setup(s => s.DBName).Returns("nameResearch");
     mockProviderSetting.Setup(s => s.CollectionName).Returns("placeNames");
     //mockProviderSetting.Setup(s => s.EntityType).Returns("text");
     var dataProvider = new MongoDBDataProvider(mockProviderSetting.Object);
     var dataList = dataProvider.Load();
     Assert.IsNotNull(dataList);
     Assert.IsTrue(dataList.Count>8000);
 }
 public void TestLoadMongoDBDict_Surnames()
 {
     var mockProviderSetting = new Mock<IDataProviderSetting>();
     mockProviderSetting.Setup(s => s.Uri).Returns("mongodb://localhost:28001");
     mockProviderSetting.Setup(s => s.ProviderType).Returns("MongoDBDataProvider");
     mockProviderSetting.Setup(s => s.DBName).Returns("nameResearch");
     mockProviderSetting.Setup(s => s.CollectionName).Returns("surnames");
     mockProviderSetting.Setup(s => s.EntityType).Returns("BluePrint.Dictionary.Entities.NameEntity,BluePrint.Dictionary");
     var dataProvider = new MongoDBDataProvider(mockProviderSetting.Object);
     var dataList = dataProvider.Load();
     Assert.IsNotNull(dataList);
     Assert.IsTrue(dataList.Count > 500);
     Assert.IsFalse(string.IsNullOrEmpty(dataList[0].Word));
 }