public void GetCuotasNOCumplidas()
 {
     CierreProVtaController target = new CierreProVtaController(); // TODO: Initialize to an appropriate value
     int idProVta = 1; // TODO: Initialize to an appropriate value
     int idGfx = 936153; // TODO: Initialize to an appropriate value
     var result = target.GetCuotasNOCumplidas(idGfx, idProVta, 1, 1);
     string rawResult = serializer.Serialize(((Hashtable)result.Data)["CuotaNOCumplida"]);
     //  string rawResult = result.Data.ToString();
     List<Vw_PedidosCierreProVta> actual = serializer.Deserialize<List<Vw_PedidosCierreProVta>>(rawResult);
     actual.ShouldNotBeNull("no debe nulo");
     var expected = 4;
     Assert.AreEqual(expected, actual.Count, "Debe haber " + expected.ToString());
 }
 public void GetPerxProVtaxDistTest()
 {
     CierreProVtaController target = new CierreProVtaController(); // TODO: Initialize to an appropriate value
     //int idProVta = 1; // TODO: Initialize to an appropriate value
     //int idGfx = 936153; // TODO: Initialize to an appropriate value
     int idTipoPeriodo = 1;
     var result = target.GetPerxProVtaxDist(idTipoPeriodo);
     string rawResult = serializer.Serialize(((Hashtable)result.Data)["Periodos"]);
     //  string rawResult = result.Data.ToString();
     List<Periodos> actual = serializer.Deserialize<List<Periodos>>(rawResult);
     actual.ShouldNotBeNull("no debe nulo");
     var expected = 1;
     Assert.AreEqual(expected, actual.Count, "Debe haber " + expected.ToString());
 }
 public void Guardar_CierreVta()
 {
     CierreProVtaController target = new CierreProVtaController();
     Cierre_ProVta cpv = new Cierre_ProVta();
     cpv.id_CierrexProVta = 4;
     cpv.id_GFX = 936153;
     cpv.id_ProgramaVta= 1;
     cpv.id_tipoperiodo= 1;
     cpv.id_Periodo= 1;
     var actual = target.SaveCierreProVta(cpv);
     string rawResult = serializer.Serialize(actual.Data);
     var expected = "true";
     Assert.AreEqual(expected, rawResult, "Debe guardar");
 }