public SelectTransformerTests()
        {
            theMapping = DocumentMapping.For<User>();
            theTarget = new TargetObject(typeof(invoking_query_with_select_Tests.User2));
            theTarget.StartBinding(ReflectionHelper.GetProperty<User>(x => x.FirstName)).Members.Add(ReflectionHelper.GetProperty<User2>(x => x.First));
            theTarget.StartBinding(ReflectionHelper.GetProperty<User>(x => x.LastName)).Members.Add(ReflectionHelper.GetProperty<User2>(x => x.Last));

            theSelector = new SelectTransformer<User2>(theMapping, theTarget);
        }
Exemplo n.º 2
0
        public SelectTransformerTests()
        {
            theMapping = DocumentMapping.For <User>();
            theTarget  = new TargetObject(typeof(invoking_query_with_select_Tests.User2));
            theTarget.StartBinding(ReflectionHelper.GetProperty <User>(x => x.FirstName).Name).Add(ReflectionHelper.GetProperty <User2>(x => x.First));
            theTarget.StartBinding(ReflectionHelper.GetProperty <User>(x => x.LastName).Name).Add(ReflectionHelper.GetProperty <User2>(x => x.Last));

            theSelector = new SelectTransformer <User2>(theMapping, theTarget);
        }