Apply() public method

Applies a modification to the member map.
public Apply ( BsonMemberMap memberMap ) : void
memberMap BsonMemberMap The member map.
return void
        public void TestApply(bool value)
        {
            var subject = new IgnoreIfDefaultConvention(value);
            var classMap = new BsonClassMap<TestClass>();
            var memberMap = classMap.MapMember(x => x.Id);

            subject.Apply(memberMap);

            Assert.AreEqual(value, memberMap.IgnoreIfDefault);
        }