public CreateMessageHandlerShould()
 {
     repository = Substitute.For <IMessageRepository>();
     handler    = new CreateMessageHandler(repository);
 }
Beispiel #2
0
 public ValidationResult Create(
     [FromBody] CreateMessageCommand createMessageCommand,
     [FromServices] CreateMessageHandler createMessageHandler)
 {
     return(createMessageHandler.Handler(createMessageCommand));
 }