public void WithCollectionName_CollectionNameNullOrEmpty_ThrowsException()
        {
            // Arrange
            var mongoCollectionBuilder = new MongoCollectionBuilder <Order>(_mongoDatabase);

            // Act
            Action setName = () => mongoCollectionBuilder.WithCollectionName(null);

            // Assert
            Assert.Throws <ArgumentException>(setName);
        }
        public void WithCollectionName_CollectionNameSet_MongoCollectionNameIsSet()
        {
            // Arrange
            var mongoCollectionBuilder = new MongoCollectionBuilder <Order>(_mongoDatabase);

            // Act
            mongoCollectionBuilder.WithCollectionName("nameOnlyForTest");
            IMongoCollection <Order> result = mongoCollectionBuilder.Build();

            // Assert
            Assert.Equal("nameOnlyForTest", result.CollectionNamespace.CollectionName);
        }