Ejemplo n.º 1
0
        public void CallKeyMapper()
        {
            var  hbm      = new HbmIdbag();
            var  mapper   = new IdBagMapper(typeof(Animal), typeof(Animal), hbm);
            bool kmCalled = false;

            mapper.Key(km => kmCalled = true);
            Assert.That(hbm.Key, Is.Not.Null);
            Assert.That(kmCalled, Is.True);
        }
Ejemplo n.º 2
0
        public void CallKeyMapper()
        {
            var  hbm      = new HbmIdbag();
            var  mapper   = new IdBagMapper(typeof(Animal), typeof(Animal), hbm);
            bool kmCalled = false;

            mapper.Key(km => kmCalled = true);
            hbm.Key.Should().Not.Be.Null();
            kmCalled.Should().Be.True();
        }
Ejemplo n.º 3
0
		public void CallKeyMapper()
		{
			var hbm = new HbmIdbag();
			var mapper = new IdBagMapper(typeof(Animal), typeof(Animal), hbm);
			bool kmCalled = false;
			mapper.Key(km => kmCalled = true);
			hbm.Key.Should().Not.Be.Null();
			kmCalled.Should().Be.True();
		}
Ejemplo n.º 4
0
		public void CallKeyMapper()
		{
			var hbm = new HbmIdbag();
			var mapper = new IdBagMapper(typeof(Animal), typeof(Animal), hbm);
			bool kmCalled = false;
			mapper.Key(km => kmCalled = true);
			Assert.That(hbm.Key, Is.Not.Null);
			Assert.That(kmCalled, Is.True);
		}