Ejemplo n.º 1
0
		public void CanSetLazyness()
		{
			var hbm = new HbmOneToOne();
			var mapper = new OneToOneMapper(null, hbm);
			mapper.Lazy(LazyRelation.NoProxy);
			Assert.That(hbm.Lazy, Is.Not.Null);
			Assert.That(hbm.Lazy, Is.EqualTo(HbmLaziness.NoProxy));
		}
Ejemplo n.º 2
0
		public void CanSetLazyness()
		{
			var hbm = new HbmOneToOne();
			var mapper = new OneToOneMapper(null, hbm);
			mapper.Lazy(LazyRelation.NoProxy);
			hbm.Lazy.Should().Have.Value();
			hbm.Lazy.Should().Be(HbmLaziness.NoProxy);
		}