public void Deve_retornar_falso_ao_criar_um_createCATCommand_com_dados_invalidos()
        {
            var createCATCommand = new CreateCATCommand("1", "222", "11");

            createCATCommand.Validate();
            Assert.AreEqual(false, createCATCommand.IsValid);
        }
Exemple #2
0
 public GenericCommandResult Create([FromBody] CreateCATCommand command, [FromServices] CATHandler handler)
 {
     return((GenericCommandResult)handler.Handler(command));
 }