Exemplo n.º 1
0
        private void TestXmlConfiguration(Configuration cfg)
        {
            IAssembler <XmlUserDTO, User> asm = cfg.GetAssembler <XmlUserDTO, User>();
            XmlUserDTO dto = asm.AssembleFrom(m_user);

            Assert.AreEqual(dto.Id, m_user.Id);
            Assert.AreEqual(dto.Age, m_user.Age);
            Assert.AreEqual(dto.UserName, m_user.UserName.ToUpper());
            Assert.AreEqual(dto.ProjectCount, m_user.Projects.Count);
            Assert.AreEqual(dto.FullName, m_user.FirstName + " " + m_user.LastName);
        }
Exemplo n.º 2
0
 public static void Convert(ref XmlUserDTO dto, ref User user)
 {
 }
Exemplo n.º 3
0
 public static void Convert(ref XmlUserDTO dto, ref User user)
 {
 }