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); }