Created
July 7, 2011 13:32
-
-
Save rvlieshout/1069510 to your computer and use it in GitHub Desktop.
A command decorated with the desired validator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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