Martin Lapierre
Martin is an independent .NET Consultant living in Montreal, who is always interested in opportunities involving cutting-edge Microsoft technologies.
Martin has been doing n-tier software development and architecture on the Microsoft platform for more than 15 years and has experience in many business domains, such as microwave communications, manufacturing, engineering, finance, content management, laboratory informatics, text mining, code generation, and a few others.
When he's not doing .NET, you can find him trekking or kayaking in a national park, hitting balls on a tennis court, or adventuring in a faraway fantasy world.
Articles Authored
-
Introducing Advanced Code Contracts with the Entity Framework and Pex
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2010 - January/February
Martin introduces Design by Contract and Code Contracts, and gives you a sneak preview of Pex—Microsoft’s new test-suite generator. Along the way, he will show you how to add contracts to ADO.NET entities and some interesting coding strategies, good practices, and pitfalls you may encounter while making a deal with your code.With Code Contracts, Microsoft delivers its own flavor of Design by Contract for the .NET Framework. But wait, what is this thing sometimes called Contract-First Development? How will it change the way you develop software and write your unit tests? And first and foremost, how do you use Code Contracts efficiently?In this article, I will introduce Design by Contract and Code Contracts, as well as give you a sneak preview of Pex-Microsoft’s new test-suite generator. Along the way, I will show you how to add contracts to ADO.NET entities and some interesting coding strategies, good practices, and pitfalls you may encounter while making a deal with your code.