NFe.Components.QRCode.QRCode.Validate C# (CSharp) Method

Validate() private method

Validar se os dados foram encontrados no XML
private Validate ( ) : void
return void
        private void Validate()
        {
            if (String.IsNullOrEmpty(this.ChaveAcesso))
                throw new Exceptions.FalhaLinkQRCode(ArquivoXML, "infNFe", "ID");
            if (String.IsNullOrEmpty(this.TpAmb))
                throw new Exceptions.FalhaLinkQRCode(ArquivoXML, "ide", "tpAmb");
            if (String.IsNullOrEmpty(this.DhEmi))
                throw new Exceptions.FalhaLinkQRCode(ArquivoXML, "ide", "dhEmi");
            if (String.IsNullOrEmpty(this.vNF))
                throw new Exceptions.FalhaLinkQRCode(ArquivoXML, "ICMSTot", "vNF");
            if (String.IsNullOrEmpty(this.vICMS))
                throw new Exceptions.FalhaLinkQRCode(ArquivoXML, "ICMSTot", "vICMS");
            if (String.IsNullOrEmpty(this.digVal))
                throw new Exceptions.FalhaLinkQRCode(ArquivoXML, "Reference", "DigestValue");
        }