Skip to content

C# IOC and DI for Mocking and Testing - Ken Hill

Photo of
Hosted By
Brent S. and Duane


C# IOC and DI for Mocking and Testing

This is a walk through and conversation of how to use Dependency Injection (DI) and Inversion of Control (IOC) to work with mocking objects when actual integration is not possible. We will also explore how DI and IOC assist isolation of objects for unit testing and how to extend testing to multiple concretions. Both .NET Framework 4 and Core 2 examples will be provided.


Ken Hill @flipthetrain (

Ken has been creating software since he was 9 years old. He has worked on an Apple II, Timex Sinclair ZX-81, Commodore Vic-20, 64, 128, Radio Shack TRS-80, PDP-11, IBM Mainframe, HP Tandem, and PC (DOS, OS\2, Windows, Linux, BSD). Languages include BASIC, Fortran, C (+,++,#), Java, JavaScript and Node.js, COBOL, and Mark IV. Ken is currently a Cloud Architect at UMB designing solutions using .NET Core 2, Angular 5, and Microsoft Azure.

See Sharper

Teach an old Type new tricks with Extension Methods - Duane Newman

Extension methods are a great way to add functionality or integration for established types. Learn about some of the cool things that you can do without the need to subclass or modify a class directly. You can even use extension methods to supply specialized functionality that is only relevant in a particular situation or when also making use of another type or library. We'll take a look at a few quick tricks and explore how you can get started with Extension Methods today.


Centriq Training -
@centriqtraining (
Sara Lamb

5700 Broadmoor Street · Mission, KS