Validating Commands with the Decorator Pattern
This post is how I have manged to handle validating commands and queries and belongs to a series about different aspects of applying CQRS Although these examples are demonstrating usage in commands, they are aslo applicable to queries. Examples are using using MediatR to handle our requests. If you are unfamiliar with CQRS or MediatR, here are some other relevant posts: Organize by Feature Thin Controllers with CQRS and MediatR Query Objects instead of Repositories Mediator Pattern using MediatR and Unity Feature First let’s take a look at our feature for Changing a Customers Pricing Level. In this example I’ve organized… Read More »Validating Commands with the Decorator Pattern