Skip to content

Instantly share code, notes, and snippets.

@rvlieshout
Created July 7, 2011 13:32
Show Gist options
  • Save rvlieshout/1069510 to your computer and use it in GitHub Desktop.
Save rvlieshout/1069510 to your computer and use it in GitHub Desktop.
A command decorated with the desired validator
[Validator(typeof (CreateNewNoteValidator))]
[MapsToAggregateRootConstructor("MyNotes.Domain.Note, MyNotes.Domain")]
public class CreateNewNote : CommandBase
{
public CreateNewNote() {}
public CreateNewNote(Guid noteId, string text)
{
NoteId = noteId;
Text = text;
}
public Guid NoteId { get; set; }
public String Text { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment