public void CheckInvariantValidationRules() { Action <CourseUpdate.Request> CallSut = request => { DomainServices.Dispatch(request); }; // Example (not really an invariant rule) Assert2.CheckInvariantValidation("Title cannot be set to Title", () => CallSut(CreateValidRequest(p => p.CommandModel.Title = "Title"))); Assert2.CheckInvariantValidation("Title cannot be null", () => CallSut(CreateValidRequest(p => p.CommandModel.Title = null))); }