public IQueryable<Entities.CTB_CONTR> GetContribuyentes()
        {
            List<Entities.CTB_CONTR> data=new List<Entities.CTB_CONTR>();
            DateTime ldt_fec_nac = new DateTime(1988,1,1);
            GEN_PER persona=new GEN_PER();
            CTB_CONTR contribuyente = new CTB_CONTR();

            persona.PER_COD = 1;
            persona.PER_TIP_DOC = "01";
            persona.PER_NUM_DOC = "40235499";
            persona.PER_TIP = "N";
            persona.PER_APE_PAT = "ABANTO";
            persona.PER_APE_MAT = "QUISPE";
            persona.PER_NOM1 = "JUAN";
            persona.PER_SEX = "M";
            persona.PER_FEC_NAC = ldt_fec_nac;
            persona.PER_NOM_COM = "ABANTO QUISPE JUAN ";

            contribuyente.PER_COD=1;

            contribuyente.CONTR_COD=1;
            contribuyente.CONTR_DOC_TRI="10402354991";
            contribuyente.CONTR_ULT_DIG_DOC_TRI="1";

            contribuyente.GEN_PER = persona;

            data.Add(contribuyente);

            return data.AsQueryable();
        }
        public void CreateContribuyenteRucInValidoTest()
        {
            DateTime ldt_fec_nac = new DateTime(1988, 1, 1);
            GEN_PER persona = new GEN_PER();
            CTB_CONTR contribuyente = new CTB_CONTR();

            persona.PER_COD = 1;
            persona.PER_TIP_DOC = "01";
            persona.PER_NUM_DOC = "40235488";
            persona.PER_TIP = "N";
            persona.PER_APE_PAT = "ABANTO";
            persona.PER_APE_MAT = "PINEDA";
            persona.PER_NOM1 = "RICHARD";
            persona.PER_SEX = "M";
            persona.PER_FEC_NAC = ldt_fec_nac;
            persona.PER_NOM_COM = "ABANTO PINEDA RICHARD ";

            contribuyente.PER_COD = 1;

            contribuyente.CONTR_COD = 1;
            contribuyente.CONTR_DOC_TRI = "1040235488";
            contribuyente.CONTR_ULT_DIG_DOC_TRI = "1";

            contribuyente.GEN_PER = persona;

            var service = new ContribuyenteService(new ContribuyenteRepositorioMock());

            try
            {
                service.Create(contribuyente);
                Assert.Fail("Ruc InValido");
            }
            catch (ApplicationException ex)
            {

            }
        }
        public void CreateContribuyenteRucValidoTest()
        {
            DateTime ldt_fec_nac = new DateTime(1988, 1, 1);
            GEN_PER persona = new GEN_PER();
            CTB_CONTR contribuyente = new CTB_CONTR();

            persona.PER_COD = 1;
            persona.PER_TIP_DOC = "01";
            persona.PER_NUM_DOC = "40235499";
            persona.PER_TIP = "N";
            persona.PER_APE_PAT = "ABANTO";
            persona.PER_APE_MAT = "QUISPE";
            persona.PER_NOM1 = "JUAN";
            persona.PER_SEX = "M";
            persona.PER_FEC_NAC = ldt_fec_nac;
            persona.PER_NOM_COM = "ABANTO QUISPE JUAN ";

            contribuyente.PER_COD = 1;

            contribuyente.CONTR_COD = 1;
            contribuyente.CONTR_DOC_TRI = "10402354991";
            contribuyente.CONTR_ULT_DIG_DOC_TRI = "1";

            contribuyente.GEN_PER = persona;

            var service = new ContribuyenteService(new ContribuyenteRepositorioMock());

            service.Create(contribuyente);
        }