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); }
public GenericCommandResult Create([FromBody] CreateCATCommand command, [FromServices] CATHandler handler) { return((GenericCommandResult)handler.Handler(command)); }