-
Sending Email with SendGrid
Last updated: Monday, December 8, 2025
Published in: CODE Magazine: 2025 Jul/Aug
Matthew explores the advantages of using SendGrid for sending bulk emails, specifically in C# programming. He highlights the limitations of traditional methods, like SMTPClient and Mailkit, when dealing with a high volume of messages. Hess demonstrates the setup and utilization of SendGrid's REST API, focusing on its C# utility classes and personalizations feature, enabling efficient customization of emails for individual recipients. Additionally, he delves into template creation and management, showcasing SendGrid’s tools for crafting professional-quality email templates. Hess underscores SendGrid’s functionality in simplifying bulk email processes while avoiding issues related to SPAM filters and message limits.
-
Using Moq: A Simple Guide to Mocking for .NET
Last updated: Monday, December 8, 2025
Published in: CODE Magazine: 2023 - May/Jun
Moq is a mocking library for C# .NET that can help developers achieve better unit testing by improving the isolation of tests. This article explains how to use Moq for mocking, including its features such as parameter matching, setups, verification, and sequences. Moq's fluent interface is easy to use compared to other mocking libraries and it enforces loosely coupled software design using dependency injection, resulting in modular code that is easier to test, read, and extend. The article concludes with additional resources for further reading on Moq.

