private MyBsonFieldTestClass CreateModel() { var c = new MyBsonFieldTestClass { MyString = "MyString", MyInternalPropertyNamed = "InternalPropertyNamed", MyInternalPropertyNotSerializable = "InternalPropertyNotSerializable", MyInternalPropertySerializable = "InternalPropertySerializable", }; c.SetProtectedProperties("ProtectedProperties"); c.SetPrivateProperties("PrivateProperty"); return(c); }
private MyBsonFieldTestClass CreateModel() { var c = new MyBsonFieldTestClass { MyString = "MyString", MyInternalPropertyNamed = "InternalPropertyNamed", MyInternalPropertyNotSerializable = "InternalPropertyNotSerializable", MyInternalPropertySerializable = "InternalPropertySerializable", }; c.SetProtectedProperties("ProtectedProperties"); c.SetPrivateProperties("PrivateProperty"); return c; }