Exemplo n.º 1
0
        public void ToDtoTest()
        {
            var contact = new Contact()
            {
                Firstname = "Jesper", Lastname = "Aaberg", Email = "*****@*****.**"
            };

            var contactDto = contact.ToDto();

            Assert.AreEqual(contact.Firstname, contactDto.Firstname);
            Assert.AreEqual(contact.Lastname, contactDto.Lastname);
            Assert.AreEqual(contact.Email, contactDto.Email);

            Assert.IsNull(DtoFactory.ToDto(null));
        }