Exemple #1
0
        public void GetCollection_WhenCalledForAnswersCollectionReturnsExpectedCollection()
        {
            mongoCollectionFactoryAnswer = new MongoCollectionFactory <Answer>();

            var collection = mongoCollectionFactoryAnswer.GetCollection(database, AnswerCollectionName);

            collection.ShouldBeType(answerCollection.GetType());
            collection.ShouldBeSameAs(answerCollection);
        }
Exemple #2
0
        public void GetCollection_WhenCalledForSearchTermsCollectionReturnsExpectedCollection()
        {
            mongoCollectionFactorySearchTerm = new MongoCollectionFactory <SearchTerm>();

            var collection = mongoCollectionFactorySearchTerm.GetCollection(database, SearchTermCollectionName);

            collection.ShouldBeType(searchTermCollection.GetType());
            collection.ShouldBeSameAs(searchTermCollection);
        }
Exemple #3
0
        public void GetCollection_WhenCalledForQuestionsCollectionReturnsExpectedCollection()
        {
            mongoCollectionFactoryQuestion = new MongoCollectionFactory <Question>();

            var collection = mongoCollectionFactoryQuestion.GetCollection(database, QuestionCollectionName);

            collection.ShouldBeType(questionCollection.GetType());
            collection.ShouldBeSameAs(questionCollection);
        }