Exemple #1
0
        public void UnflatteningNestedMethodCalls()
        {
            var dto = new OrderDto();

            dto.SetCustomerName("Johnny");

            var mapper = new Mapper(cfg =>
            {
                cfg.Conventions.GetOrAdd <ProjectionConvention>();
            });

            var order = mapper.Map <Order>(dto);

            Assert.IsTrue(dto.GetCustomerName() == order.GetCustomer().GetName());
        }