view UnitTests/CS/Mapping/ObjectMapperAttributeTest.cs @ 7:99cd4f3947d8

Закомментированы строки мешающие добавлению авиа дежурств.
author nickolay
date Fri, 27 Oct 2017 18:26:29 +0300
parents f990fcb411a9
children
line wrap: on
line source

using System;

using NUnit.Framework;

using BLToolkit.Mapping;

namespace Mapping
{
	[TestFixture, Category("Mapping")]
	public class ObjectMapperAttributeTest
	{
		class TestMapper : ObjectMapper
		{
		}

		[ObjectMapper(typeof(TestMapper))]
		public class TestObject
		{
		}

		[Test]
		public void Test()
		{
			ObjectMapper om = Map.GetObjectMapper(typeof(TestObject));

			Assert.AreEqual(typeof(TestMapper), om.GetType());
		}
	}
}