示例#1
0
        public void Mapper_should_convert_users_too()
        {
            var postDTO = new PostDTO();

            postDTO.UserDTO = new UserDTO();
            var post = PostMapper.ConvertToPost(postDTO);

            post.User = UserMapper.ConvertToUser(postDTO.UserDTO);
            Assert.NotNull(post.User);
        }