Instructor-led training
.NET Design Patterns and Principles Training in Suamico, Wisconsin
This 3-day course that teaches students best practices for developing enterprise applications and a selection of popular design principles and patterns that can be applied to achieve a maintainable, flexible, and testable architecture.
What you'll learn
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in Suamico, Wisconsin or live online. Dates, delivery format, and course content are arranged around your team's requirements.
This course is not currently scheduled as a public class for individual enrollment.
Request Group TrainingPrerequisites
Course Outline
Dealing with Complexity
- Functional Decomposition
- Requirements and Inevitable Change
- Coupling and Cohesion
- Unwanted Side Effects
-
Perspecives
- Conceptual
- Specification
- Implementation
- Responsibilities
The Object-Oriented Paradigm
- Objects and Responsibilities
- Single Responsibility Principle (SRP)
- Interfaces and Abstract Classes
- Encapsulation and Polymorphism
-
Liskov Substitution Principle (LSP)
- Object Construction and Destruction
- Constructors and Field Initialization in .NET
- Destructors and the Finalize Method
- .NET Dispose Pattern
- Classes vs. Structs in .NET
Overview of UML
- Introduction
- Class Diagrams
- Sequence Diagrams
Introduction to Design Patterns
- Origin of Design Patterns
- “Gang of Four” Patterns
- Key Features of Patterns
- Why Study Design Patterns?
- Design Strategies
Structural Patterns (Part I)
- Facade Pattern
- Adapter Pattern
- Facade vs. Adapter
Testability
- Writing Unit Tests
- Test-Driven Development (TDD)
- Dependencies
- Extracting Interfaces
- Mock Object Pattern
Behavioral Patterns (Part I)
- Dealing with Change
- Encapsulating Variations
- Strategy Pattern
- Open-Closed Principle (OCP)
- Template Method Pattern
Structural Patterns (Part II)
- Inheritance vs. Composition
- Bridge Pattern
- Decorator Pattern
- Proxy Pattern
Behavioral Patterns (Part II)
- Observer Pattern
- .NET Events
- Command Pattern
Creational Patterns
- Motivation
- Dependency Injection
-
Singleton Pattern
- Thread Safety
- .NET Implementation
- Object Pool Pattern
- Factory Method Pattern
- Abstract Factory Pattern
Model-View-Controller (MVC)
- Model-View-Presenter (MVP)
- Model-View-ViewModel (MVVM)
- WPF and ASP.NET MVC
Architectural Patterns and Styles
- Component-Based Architecture
- .NET Assemblies and Versioning
- N-Tier Architecure
- Service-Oriented Architecture (SOA)
Designing with Patterns
- Summary of Design Principles
- Commonality and Variability
- Dependency Inversion Principle (DIP)
- Hybrid and Composite Patterns
- Design Patterns and Agile Practices
What makes design patterns hard to apply well
Knowing a pattern's class diagram is the easy part. The hard part is judging when a pattern removes a real problem and when it only adds indirection. The course frames this through coupling and cohesion, requirements and inevitable change and unwanted side effects, so each pattern is tied to the kind of change it is meant to absorb.
Several misconceptions come up repeatedly:
- Look-alike patterns are interchangeable. The syllabus compares Facade with Adapter directly, and later contrasts inheritance with composition when it reaches Bridge, Decorator and Proxy. The structures look similar, but the intent differs.
- Singleton is simple. The course treats thread safety and the .NET implementation as part of the pattern, not an afterthought.
- Garbage collection removes cleanup work. Destructors, the Finalize method and the Dispose pattern are covered because deterministic resource release is a design decision, as is the choice between classes and structs.
- Dependency injection is a framework feature. It is introduced under creational patterns, next to the extracted interfaces and Mock Object pattern from the testability module.
The material builds in a clear order. SRP, LSP and encapsulation come first. UML class and sequence diagrams then give a shared notation. Structural and behavioral patterns follow, with testability and the Open-Closed Principle motivating many of them. The course ends with MVC, MVP, MVVM, component-based, N-tier and service-oriented styles, and then returns to the Dependency Inversion Principle, commonality and variability, and hybrid and composite patterns.
Who this course suits and what to take around it
The course is a general-level class for developers who already build .NET applications and want a shared vocabulary for design decisions. Architects and technical leads who review code or set team conventions will also find it useful. Prior .NET development experience is required, because the examples assume you can read and write .NET code.
If your day-to-day C# or class-library fundamentals are shaky, .NET Framework Using C# is a sensible preparation step, because patterns are easier to learn once the language features they rely on are routine. For a next step, Advanced .NET Framework Programming Using C# goes deeper into the runtime that several of these topics touch, such as threading and resource management. If you want to see MVC applied in a web framework, ASP.NET Core MVC (VS2022) is a natural follow-on.
Organizations that work on a specific .NET release can ask for private training tailored to it. Request a training proposal to discuss it.
Illustrative scenarios
The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.
- Wrapping an awkward dependency. A team might need to call a third-party component whose interface does not match its own code. An Adapter converts the interface, and a Facade can then hide a multi-step workflow behind one call. Extracting an interface and substituting a mock lets the team unit test the calling code without the real component.
- Rules that keep changing. For example, an order-processing module might see its validation rules change every quarter. Strategy and Template Method, guided by the Open-Closed Principle, let new rules be added without editing tested code. Factory Method or Abstract Factory can choose the right variant.
- Responsive UI and undo. A desktop team might use Observer through .NET events to keep several views in sync with a model. Command can represent user actions so they can be queued or reversed, and MVVM can separate presentation logic from the window, as in WPF.
Using AI coding assistants with design patterns
AI coding assistants are good at the mechanical side of this material. They can scaffold the interface, concrete classes and wiring for a Strategy or Decorator, draft UML-style descriptions, and generate first-pass unit tests for code with extracted interfaces.
They are weaker on judgment. Common failures for these topics include:
- Applying a pattern where a plain method would do, which adds coupling instead of removing it.
- Producing a Singleton that is not thread-safe, or a Dispose implementation that mishandles the finalizer or double disposal.
- Confusing Facade with Adapter, or using inheritance where composition is the better fit.
- Getting dependency lifetimes wrong, or wiring Observer subscriptions so that publishers keep subscribers alive.
- Calling APIs that do not exist in the .NET version being targeted.
To verify the output, ask what change the pattern absorbs and check the result against SRP, LSP, OCP and DIP. Write a test that exercises the concurrency or cleanup behavior, rather than trusting generated tests. Compile against your actual target version. Review any event subscription or disposable resource for who owns its lifetime.
Frequently asked questions
What level is this course?
It is a general-level, 3-day course for developers who already work in .NET. It focuses on design decisions rather than language syntax.
What do I need to know beforehand?
Prior experience developing applications in .NET is required. You should be comfortable reading and writing .NET code and working with classes and interfaces.
Which patterns and principles are covered?
The syllabus covers SRP, LSP, OCP and DIP, along with Gang of Four patterns across the structural, behavioral and creational groups. These include Facade, Adapter, Bridge, Decorator, Proxy, Strategy, Template Method, Observer, Command, Singleton, Object Pool, Factory Method and Abstract Factory. It also covers Mock Object, dependency injection, TDD, UML basics, MVC/MVP/MVVM, and component-based, N-tier and service-oriented architecture.
Can this be delivered privately for our team?
Yes. HSG provides private training for organizations, delivered onsite at the client's location or live online.
Can the content be customized?
Private training can be tailored to the technology versions and priorities of your organization. Use the training proposal request to describe your environment and goals.
Training locations
.NET Design Patterns and Principles training across the U.S. and beyond.
We provide private .NET Design Patterns and Principles training for organizations, onsite at your location or live online, throughout the United States and internationally.
View all .NET Design Patterns and Principles training locations
Train your team with HSG
Private, instructor-led training customized for your organization.
- Onsite or live online delivery
- Customized curriculum
- For a single employee or an entire team
- Flexible scheduling
- Experienced instructors
Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com
Ready to train your team?
Let's customize this training for your organization.
Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.