using System;
using System.Collections.Generic;
using System.Text;
using CodeSatFramework;

namespace ConsoleApp2
{
    class Program
    {
static void Main(string[] args)
        {
            string dadosVenda = @"<CFe><infCFe versaoDadosEnt=""0.07""><ide><CNPJ>07494091000108</CNPJ><signAC>SGR-SAT SISTEMA DE GESTAO E RETAGUARDA DO SAT</signAC><numeroCaixa>001</numeroCaixa></ide><emit><CNPJ>07494091000108</CNPJ><IE>672175805115</IE><IM>27020</IM><cRegTribISSQN>3</cRegTribISSQN><indRatISSQN>N</indRatISSQN></emit><dest><xNome>NAO INFORMADO</xNome></dest><det nItem=""1""><prod><cProd>001</cProd><xProd>SUCO TANG DE MARACUJA</xProd><NCM>21069010</NCM><CFOP>5102</CFOP><uCom>UN</uCom><qCom>1.0000</qCom><vUnCom>0.98</vUnCom><indRegra>A</indRegra><vDesc>0.00</vDesc></prod><imposto><ICMS><ICMSSN102><Orig>0</Orig><CSOSN>102</CSOSN></ICMSSN102></ICMS><PIS><PISSN><CST>49</CST></PISSN></PIS><COFINS><COFINSSN><CST>49</CST></COFINSSN></COFINS></imposto></det><total><vCFeLei12741>0.31</vCFeLei12741></total><pgto><MP><cMP>01</cMP><vMP>0.98</vMP></MP></pgto><infAdic><infCpl>Val. Aprox. Tributos: Federais R$ 0.13 Estaduais R$ 0.18 Municipais R$ 0 Fonte: IBPT F3W1D7 (Conforme Lei Fed.12.741/2012)</infCpl></infAdic></infCFe></CFe>";
            int ses = new Random().Next(9999);
            var sat = new CodeSatFramework.ClassCONN();
            // var res = sat.GetConsultarStatusOperacional(ses, "c0d3S4t1");
            var res = sat.GetConsultarSAT(ses);
            // var res = sat.SetExtrairLogs(new Random().Next(), "c0d3S4t1");
            // var res = sat.SetEnviarDadosVenda(ses, "c0d3S4t1", dadosVenda);
            Console.WriteLine(res);
            // Console.WriteLine(res.Length);
            // Console.Read();
            Console.Read();
        }
    }
}
