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); }
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); }