public void ShouldReturnErrorWhenEmissaoNotaFiscalCommandIsInvalid() { var obj = new EmissaoNotaFiscalCommand(); obj.Validate(); Assert.AreEqual(false, obj.Valid); }
public void ShouldReturnErrorWhenEmissaoNotaFiscalCommandSemEstadoDestino() { var obj = new EmissaoNotaFiscalCommand(); obj.NomeCliente = "Cliente de teste"; obj.EstadoOrigem = EEstados.SP; obj.Validate(); Assert.AreEqual(false, obj.Valid); }
public void ShouldReturnSuccessWhenEmissaoNotaFiscalCommandIsValid() { var obj = new EmissaoNotaFiscalCommand(); obj.NomeCliente = "Cliente de teste"; obj.EstadoDestino = new EstadoDestino(EEstados.SP); obj.EstadoOrigem = EEstados.SP; obj.Validate(); Assert.AreEqual(true, obj.Valid); }