public void AoInstanciarSeInvalidoDeveRetornarNotification() { var command = new CreateIngredienteCategoriaCommand(); Assert.False(command.IsValid()); Assert.True(command.ValidationResult.Errors.Any()); }
public async Task <IActionResult> Post([FromBody] CreateIngredienteCategoriaCommand request) { var response = await _mediator.Send(request); return(Response(response)); }