Mercurial > pub > bltoolkit
annotate UnitTests/CS/Mapping/ObjectMapperAttributeTest.cs @ 1:8f65451dc28f
Исправлена проблема с фабрикой и выборкой нескольких объектов в linq выражении
author | cin |
---|---|
date | Fri, 28 Mar 2014 01:04:56 +0400 |
parents | f990fcb411a9 |
children |
rev | line source |
---|---|
0 | 1 using System; |
2 | |
3 using NUnit.Framework; | |
4 | |
5 using BLToolkit.Mapping; | |
6 | |
7 namespace Mapping | |
8 { | |
9 [TestFixture, Category("Mapping")] | |
10 public class ObjectMapperAttributeTest | |
11 { | |
12 class TestMapper : ObjectMapper | |
13 { | |
14 } | |
15 | |
16 [ObjectMapper(typeof(TestMapper))] | |
17 public class TestObject | |
18 { | |
19 } | |
20 | |
21 [Test] | |
22 public void Test() | |
23 { | |
24 ObjectMapper om = Map.GetObjectMapper(typeof(TestObject)); | |
25 | |
26 Assert.AreEqual(typeof(TestMapper), om.GetType()); | |
27 } | |
28 } | |
29 } |