Apply() public method

Applies a modification to the class map.
public Apply ( BsonClassMap classMap ) : void
classMap BsonClassMap The class map.
return void
 public void TestNamedExtraElementsMemberConventionWithTestClassB()
 {
     var convention = new NamedExtraElementsMemberConvention("ExtraElements");
     var classMap = new BsonClassMap<TestClassB>();
     convention.Apply(classMap);
     Assert.IsNull(classMap.ExtraElementsMemberMap);
 }
 public void TestNamedExtraElementsMemberConventionWithTestClassA()
 {
     var convention = new NamedExtraElementsMemberConvention("ExtraElements");
     var classMap = new BsonClassMap<TestClassA>();
     convention.Apply(classMap);
     Assert.IsNotNull(classMap.ExtraElementsMemberMap);
     Assert.AreEqual("ExtraElements", classMap.ExtraElementsMemberMap.MemberName);
 }