示例#1
0
        public void Map_ShouldMapFullName()
        {
            var anon = new AnonymousData();
            var dto  = anon.Any <EmployeeDto>();

            anon.Populate(dto);
            var mapper = new Mapper();

            var employee = mapper.Map <Employee>(dto);

            Assert(employee.FullName).IsEqualTo($"{dto.LastName}, {dto.FirstName}");
        }