Ejemplo n.º 1
0
        public void DifferentCase_ThrowsException()
        {
            // ARRANGE
            var     subject  = new DefaultReceiverMapper();
            var     mail     = new Models.Mail();
            dynamic receiver = new ExpandoObject();

            receiver.FuLlName = "Markus Boxington";
            receiver.eMAIl    = "*****@*****.**";

            // ACT
            subject.Map(receiver, mail);

            // ASSERT
            Assert.AreEqual("*****@*****.**", mail.Receiver.Address);
            Assert.AreEqual("Markus Boxington", mail.Receiver.DisplayName);
        }
Ejemplo n.º 2
0
        public void Basic()
        {
            // ARRANGE
            var     subject  = new DefaultReceiverMapper();
            var     mail     = new Models.Mail();
            dynamic receiver = new ExpandoObject();

            receiver.fullname = "Markus Boxington";
            receiver.email    = "*****@*****.**";

            // ACT
            subject.Map(receiver, mail);

            // ASSERT
            Assert.AreEqual("*****@*****.**", mail.Receiver.Address);
            Assert.AreEqual("Markus Boxington", mail.Receiver.DisplayName);
        }