Ejemplo n.º 1
0
		public void WhenForeignKeyIsNullForeignKeyMappingIsNull()
		{
			var hbm = new HbmOneToOne();
			var mapper = new OneToOneMapper(null, hbm);
			mapper.ForeignKey(null);

			Assert.That(hbm.foreignkey, Is.Null);
		}
Ejemplo n.º 2
0
		public void WhenForeignKeyIsNullForeignKeyMappingIsNull()
		{
			var hbm = new HbmOneToOne();
			var mapper = new OneToOneMapper(null, hbm);
			mapper.ForeignKey(null);

			hbm.foreignkey.Should().Be.Null();
		}
Ejemplo n.º 3
0
		public void CanSetForeignKeyName()
		{
			var hbm = new HbmOneToOne();
			var mapper = new OneToOneMapper(null, hbm);
			mapper.ForeignKey("Id");

			Assert.That(hbm.foreignkey, Is.EqualTo("Id"));
		}
Ejemplo n.º 4
0
		public void CanSetForeignKeyName()
		{
			var hbm = new HbmOneToOne();
			var mapper = new OneToOneMapper(null, hbm);
			mapper.ForeignKey("Id");

			hbm.foreignkey.Should().Be("Id");
		}