public void VerifyResult() { example = new SenderManipulationExample(); example.Run(); // Invite three senders Assert.AreEqual(example.retrievedSender1.Email, example.email1); Assert.AreEqual(example.retrievedSender2.Email, example.email2); Assert.AreEqual(example.retrievedSender3.Email, example.email3); // Delete Sender Assert.IsTrue(AssertSenderWasDeleted(example.email2)); // Update Sender Sender sender = example.retrievedUpdatedSender3; SenderInfo updatedInfo = example.updatedSenderInfo; Assert.AreEqual(updatedInfo.FirstName, sender.FirstName); Assert.AreEqual(updatedInfo.LastName, sender.LastName); Assert.AreEqual(updatedInfo.Company, sender.Company); Assert.AreEqual(updatedInfo.Title, sender.Title); }
public void VerifyResult() { example = new SenderManipulationExample(Props.GetInstance()); example.Run(); // Invite three senders Assert.AreEqual(example.retrievedSender1.Email, example.email1); Assert.AreEqual(example.retrievedSender2.Email, example.email2); Assert.AreEqual(example.retrievedSender3.Email, example.email3); // Delete Sender Assert.IsTrue(AssertSenderWasDeleted(example.email2)); // Update Sender Sender sender = example.retrievedUpdatedSender3; SenderInfo updatedInfo = example.updatedSenderInfo; Assert.AreEqual(updatedInfo.FirstName, sender.FirstName); Assert.AreEqual(updatedInfo.LastName, sender.LastName); Assert.AreEqual(updatedInfo.Company, sender.Company); Assert.AreEqual(updatedInfo.Title, sender.Title); }