public void SetLazy() { var hbm = new HbmIdbag(); var mapper = new IdBagMapper(typeof(Animal), typeof(Animal), hbm); mapper.Lazy(CollectionLazy.Extra); Assert.That(hbm.Lazy, Is.EqualTo(HbmCollectionLazy.Extra)); mapper.Lazy(CollectionLazy.NoLazy); Assert.That(hbm.Lazy, Is.EqualTo(HbmCollectionLazy.False)); mapper.Lazy(CollectionLazy.Lazy); Assert.That(hbm.Lazy, Is.EqualTo(HbmCollectionLazy.True)); }
public void SetLazy() { var hbm = new HbmIdbag(); var mapper = new IdBagMapper(typeof(Animal), typeof(Animal), hbm); mapper.Lazy(CollectionLazy.Extra); hbm.Lazy.Should().Be.EqualTo(HbmCollectionLazy.Extra); mapper.Lazy(CollectionLazy.NoLazy); hbm.Lazy.Should().Be.EqualTo(HbmCollectionLazy.False); mapper.Lazy(CollectionLazy.Lazy); hbm.Lazy.Should().Be.EqualTo(HbmCollectionLazy.True); }