Пример #1
0
		public void WhenSetLazyThenSetAttributes()
		{
			var member = For<MyClass>.Property(x => x.ReadOnly);
			var mapping = new HbmProperty();
			var mapper = new PropertyMapper(member, mapping);

			mapper.Lazy(true);
			mapping.lazy.Should().Be.True();
			mapping.IsLazyProperty.Should().Be.True();
		}
		public void WhenSetLazyThenSetAttributes()
		{
			var member = For<MyClass>.Property(x => x.ReadOnly);
			var mapping = new HbmProperty();
			var mapper = new PropertyMapper(member, mapping);

			mapper.Lazy(true);
			Assert.That(mapping.lazy, Is.True);
			Assert.That(mapping.IsLazyProperty, Is.True);
		}