Skip to content

Instantly share code, notes, and snippets.


Rhys Sharrem rhyss

View GitHub Profile
PaulUpson / CommandValidator.cs
Created Apr 4, 2012
Validation within Aggregate Roots - Part 2
View CommandValidator.cs
public interface IValidationHandler<in T> where T : Command {
ValidationResult Validate(T cmd);
public interface ICommandValidator {
ValidationResult Validate<T>(T command) where T : Command;
public class CommandValidator : ICommandValidator {
private readonly IDictionary<Type, Func<object, ValidationResult>> _validationHandlers
You can’t perform that action at this time.