diff --git a/ExpressMapper NET40/MemberConfiguration.cs b/ExpressMapper NET40/MemberConfiguration.cs index 4beb91e..558f30f 100644 --- a/ExpressMapper NET40/MemberConfiguration.cs +++ b/ExpressMapper NET40/MemberConfiguration.cs @@ -59,7 +59,11 @@ public IMemberConfiguration Member(Expression Function(Expression(); + Mapper.Register() + .Member(t => t.Id, t => t.Id) + .Function(t => t.Name, t => t.Name); + Mapper.Register(); + Mapper.Register(); + Mapper.Compile(); + + var srcAndDest = Functional.FieldsTestMap(); + + var bvm = Mapper.Map(srcAndDest.Key); + + Assert.AreEqual(bvm, srcAndDest.Value); + } + [Test] public void MappingOrderLessTest() {