示例#1
0
        public void AoInstanciarSeInvalidoDeveRetornarNotification()
        {
            var command = new CreateIngredienteCategoriaCommand();

            Assert.False(command.IsValid());
            Assert.True(command.ValidationResult.Errors.Any());
        }
示例#2
0
        public async Task <IActionResult> Post([FromBody] CreateIngredienteCategoriaCommand request)
        {
            var response = await _mediator.Send(request);

            return(Response(response));
        }