public void GetCollection_WhenCalledForAnswersCollectionReturnsExpectedCollection() { mongoCollectionFactoryAnswer = new MongoCollectionFactory <Answer>(); var collection = mongoCollectionFactoryAnswer.GetCollection(database, AnswerCollectionName); collection.ShouldBeType(answerCollection.GetType()); collection.ShouldBeSameAs(answerCollection); }
public void GetCollection_WhenCalledForSearchTermsCollectionReturnsExpectedCollection() { mongoCollectionFactorySearchTerm = new MongoCollectionFactory <SearchTerm>(); var collection = mongoCollectionFactorySearchTerm.GetCollection(database, SearchTermCollectionName); collection.ShouldBeType(searchTermCollection.GetType()); collection.ShouldBeSameAs(searchTermCollection); }
public void GetCollection_WhenCalledForQuestionsCollectionReturnsExpectedCollection() { mongoCollectionFactoryQuestion = new MongoCollectionFactory <Question>(); var collection = mongoCollectionFactoryQuestion.GetCollection(database, QuestionCollectionName); collection.ShouldBeType(questionCollection.GetType()); collection.ShouldBeSameAs(questionCollection); }