Scott DePouw

Scott DePouw

Senior Consultant

Scott has over a decade of professional software development and consulting experience working with a plethora of technologies and frameworks. He's a strong proponent and practitioner of SOLID programming principles and test-driven development.

Posts

  1. Scott
    November 29, 2023

    Stop writing your own IClock wrappers. .NET 8's TimeProvider gives you a built-in time abstraction, and FakeTimeProvider makes time-dependent code easy to test.

  2. Scott
    December 14, 2022

    ASP.NET Core MVC treats non-nullable properties as implicitly [Required], but calling the validator yourself doesn't. Adjust your unit tests to match.

  3. Scott
    December 12, 2022

    AssertConfigurationIsValid skips ReverseMap configurations in AutoMapper. Fix it with two distinct mappings or ValidateMemberList, and know when to use each.

  4. Scott
    September 13, 2022

    AutoMapper lets you map a type to itself without creating a map, but it returns the same instance instead of a copy. Here's how to force a real copy and test …

  5. Scott
    August 16, 2022

    AutoMapper maps are easy to unit test. Use AssertConfigurationIsValid, regression tests, and a reusable base test class to verify mappings with less …

  6. Scott
    August 10, 2022

    How to set up AutoMapper in a C# solution with a factory class and an Autofac module, and why keeping mapping logic simple makes your code easier to test.