public void AbleToRetrieveItemsFromTestDatabase() { // Setup var mch = new MongoConnectionHandler("mongodb://localhost", "test"); // Act var kegs = mch.Database.GetCollection <Keg>("kegs").FindAllAs <Keg>(); // Assert Assert.AreNotEqual(0, kegs.Count()); }
protected EntityService() { MongoConnectionHandler = new MongoConnectionHandler <T>(); }
public void MongoConnectionHandler_void_notNull() { var mongoConfigService = new MongoConfigService(); var connectionHandler = new MongoConnectionHandler<MongoBaseEntity>(mongoConfigService); Assert.IsNotNull(connectionHandler); }
protected Repository(string connectionString, string dbName) { MongoConnectionHandler = new MongoConnectionHandler <T>(connectionString, dbName, "library"); }
public EntityService() { MongoConnectionHandler = new MongoConnectionHandler <T>(); }
public TrainingPlanEntityService() { TrainingPlans = new MongoConnectionHandler <ITrainingPlan>(); entityServices = new EntityService <ITrainingPlan, TrainingPlan>(); }
/// <summary> /// Public constructor. /// </summary> public TokenEntityService() { MongoConnectionHandler = new MongoConnectionHandler <TokenEntity>(); }
public ConnectionEntityService() { Connections = new MongoConnectionHandler <IConnection>(); entityServices = new EntityService <IConnection, Connection>(); }
public UserEntityService() { Users = new MongoConnectionHandler <IUser>(); entityServices = new EntityService <IUser, User>(); }
public ExpertiseEntityService() { Expertises = new MongoConnectionHandler <IExpertise>(); entityServices = new EntityService <IExpertise, Expertise>(); }
public ChallengeEntityService() { Challenges = new MongoConnectionHandler <IChallenge>(); entityServices = new EntityService <IChallenge, Challenge>(); }