Esempio n. 1
0
        public JsonResult RemoveDevolucionDetalleTest([PexAssumeUnderTest] DevolucionController target, tbDevolucionDetalle DetalleDevolucioncont)
        {
            JsonResult result = target.RemoveDevolucionDetalle(DetalleDevolucioncont);

            return(result);
            // TODO: agregar aserciones a método DevolucionControllerTest.RemoveDevolucionDetalleTest(DevolucionController, tbDevolucionDetalle)
        }
Esempio n. 2
0
        public JsonResult GetDevolucionDetalleEditarTest([PexAssumeUnderTest] DevolucionController target, long DetalleDevID)
        {
            JsonResult result = target.GetDevolucionDetalleEditar(DetalleDevID);

            return(result);
            // TODO: agregar aserciones a método DevolucionControllerTest.GetDevolucionDetalleEditarTest(DevolucionController, Int64)
        }
Esempio n. 3
0
        public DevolucionController ConstructorTest()
        {
            DevolucionController target = new DevolucionController();

            return(target);
            // TODO: agregar aserciones a método DevolucionControllerTest.ConstructorTest()
        }
Esempio n. 4
0
        public JsonResult FiltrarModalProductoTest([PexAssumeUnderTest] DevolucionController target, int FacturaID)
        {
            JsonResult result = target.FiltrarModalProducto(FacturaID);

            return(result);
            // TODO: agregar aserciones a método DevolucionControllerTest.FiltrarModalProductoTest(DevolucionController, Int32)
        }
Esempio n. 5
0
        public JsonResult FiltrarModalTest([PexAssumeUnderTest] DevolucionController target, string CodCliente)
        {
            JsonResult result = target.FiltrarModal(CodCliente);

            return(result);
            // TODO: agregar aserciones a método DevolucionControllerTest.FiltrarModalTest(DevolucionController, String)
        }
Esempio n. 6
0
        public ActionResult EmitirNotaCreditoTest([PexAssumeUnderTest] DevolucionController target, tbDevolucion Devolucion)
        {
            ActionResult result = target.EmitirNotaCredito(Devolucion);

            return(result);
            // TODO: agregar aserciones a método DevolucionControllerTest.EmitirNotaCreditoTest(DevolucionController, tbDevolucion)
        }
Esempio n. 7
0
        public ActionResult UpdateDevolucionDetalleTest([PexAssumeUnderTest] DevolucionController target, tbDevolucionDetalle EditDevolucionDetalle)
        {
            ActionResult result = target.UpdateDevolucionDetalle(EditDevolucionDetalle);

            return(result);
            // TODO: agregar aserciones a método DevolucionControllerTest.UpdateDevolucionDetalleTest(DevolucionController, tbDevolucionDetalle)
        }
Esempio n. 8
0
        public ActionResult DeleteTest([PexAssumeUnderTest] DevolucionController target, int?id)
        {
            ActionResult result = target.Delete(id);

            return(result);
            // TODO: agregar aserciones a método DevolucionControllerTest.DeleteTest(DevolucionController, Nullable`1<Int32>)
        }
Esempio n. 9
0
        public ActionResult DeleteConfirmedTest([PexAssumeUnderTest] DevolucionController target, int id)
        {
            ActionResult result = target.DeleteConfirmed(id);

            return(result);
            // TODO: agregar aserciones a método DevolucionControllerTest.DeleteConfirmedTest(DevolucionController, Int32)
        }
 public void CreateTest01ThrowsNotImplementedException597()
 {
     using (PexDisposableContext disposables = PexDisposableContext.Create())
     {
         DevolucionController devolucionController;
         ActionResult         actionResult;
         ControllerContext    s0 = new ControllerContext();
         s0.Controller        = (ControllerBase)null;
         s0.HttpContext       = (HttpContextBase)null;
         s0.RequestContext    = (RequestContext)null;
         s0.RouteData         = (RouteData)null;
         devolucionController = new DevolucionController();
         ((Controller)devolucionController).Resolver         = (IDependencyResolver)null;
         ((Controller)devolucionController).ActionInvoker    = (IActionInvoker)null;
         ((Controller)devolucionController).TempDataProvider = (ITempDataProvider)null;
         ((Controller)devolucionController).Url = (UrlHelper)null;
         ((Controller)devolucionController).ViewEngineCollection =
             (ViewEngineCollection)null;
         ((ControllerBase)devolucionController).ControllerContext = s0;
         ((ControllerBase)devolucionController).TempData          = (TempDataDictionary)null;
         ((ControllerBase)devolucionController).ValidateRequest   = false;
         ((ControllerBase)devolucionController).ValueProvider     = (IValueProvider)null;
         ((ControllerBase)devolucionController).ViewData          = (ViewDataDictionary)null;
         disposables.Add((IDisposable)devolucionController);
         actionResult = this.CreateTest01(devolucionController, (tbDevolucion)null);
         disposables.Dispose();
     }
 }
Esempio n. 11
0
 public void EmitirNotaCreditoTestThrowsNullReferenceException1()
 {
     using (PexDisposableContext disposables = PexDisposableContext.Create())
     {
         DevolucionController devolucionController;
         ActionResult         actionResult;
         devolucionController = new DevolucionController();
         ((Controller)devolucionController).Resolver         = (IDependencyResolver)null;
         ((Controller)devolucionController).ActionInvoker    = (IActionInvoker)null;
         ((Controller)devolucionController).TempDataProvider = (ITempDataProvider)null;
         ((Controller)devolucionController).Url = (UrlHelper)null;
         ((Controller)devolucionController).ViewEngineCollection =
             (ViewEngineCollection)null;
         ((ControllerBase)devolucionController).ControllerContext =
             (ControllerContext)null;
         ((ControllerBase)devolucionController).TempData        = (TempDataDictionary)null;
         ((ControllerBase)devolucionController).ValidateRequest = false;
         ((ControllerBase)devolucionController).ValueProvider   = (IValueProvider)null;
         ((ControllerBase)devolucionController).ViewData        = (ViewDataDictionary)null;
         disposables.Add((IDisposable)devolucionController);
         actionResult =
             this.EmitirNotaCreditoTest(devolucionController, (tbDevolucion)null);
         disposables.Dispose();
     }
 }
Esempio n. 12
0
        private void Inicilize()
        {
            conceptoMovInvController = new ConceptoMovInvController();
            devolucionpController    = new DevolucionpController();
            devolucionController     = new DevolucionController();
            proveedorController      = new ProveedorController();
            productoController       = new ProductoController();
            movInvController         = new MovInvController();
            loteController           = new LoteController();


            conceptoMovInv = null;
            devolucion     = null;
            partida        = null;
            proveedor      = null;
            producto       = null;
            lote           = null;

            //Listas
            partidas = new List <Devolucionp>();

            //Variables
            sobreGrid = false;
            Subtotal  = 0;
            Impuesto  = 0;
            CreaDevolucion();
        }
Esempio n. 13
0
        public ActionResult EditTest01([PexAssumeUnderTest] DevolucionController target, tbDevolucion tbDevolucion)
        {
            ActionResult result = target.Edit(tbDevolucion);

            return(result);
            // TODO: agregar aserciones a método DevolucionControllerTest.EditTest01(DevolucionController, tbDevolucion)
        }
Esempio n. 14
0
        public ActionResult CreateNotaCreditoTest01([PexAssumeUnderTest] DevolucionController target, tbNotaCredito tbNotaCredito)
        {
            ActionResult result = target.CreateNotaCredito(tbNotaCredito);

            return(result);
            // TODO: agregar aserciones a método DevolucionControllerTest.CreateNotaCreditoTest01(DevolucionController, tbNotaCredito)
        }
Esempio n. 15
0
        public ActionResult CreateTest([PexAssumeUnderTest] DevolucionController target)
        {
            ActionResult result = target.Create();

            return(result);
            // TODO: agregar aserciones a método DevolucionControllerTest.CreateTest(DevolucionController)
        }
Esempio n. 16
0
 public void DeleteTest393()
 {
     using (PexDisposableContext disposables = PexDisposableContext.Create())
     {
         DevolucionController devolucionController;
         ActionResult         actionResult;
         devolucionController = new DevolucionController();
         ((Controller)devolucionController).Resolver         = (IDependencyResolver)null;
         ((Controller)devolucionController).ActionInvoker    = (IActionInvoker)null;
         ((Controller)devolucionController).TempDataProvider = (ITempDataProvider)null;
         ((Controller)devolucionController).Url = (UrlHelper)null;
         ((Controller)devolucionController).ViewEngineCollection =
             (ViewEngineCollection)null;
         ((ControllerBase)devolucionController).ControllerContext =
             (ControllerContext)null;
         ((ControllerBase)devolucionController).TempData        = (TempDataDictionary)null;
         ((ControllerBase)devolucionController).ValidateRequest = false;
         ((ControllerBase)devolucionController).ValueProvider   = (IValueProvider)null;
         ((ControllerBase)devolucionController).ViewData        = (ViewDataDictionary)null;
         disposables.Add((IDisposable)devolucionController);
         actionResult = this.DeleteTest(devolucionController, default(int?));
         disposables.Dispose();
         Assert.IsNotNull((object)devolucionController);
         Assert.IsNotNull(((Controller)devolucionController).AsyncManager);
         Assert.IsNotNull
             (((Controller)devolucionController).AsyncManager.OutstandingOperations);
         Assert.IsNotNull(((Controller)devolucionController).AsyncManager.Parameters);
         Assert.AreEqual <int>
             (45000, ((Controller)devolucionController).AsyncManager.Timeout);
         Assert.IsNull(((Controller)devolucionController).Url);
         Assert.IsNull(((ControllerBase)devolucionController).ControllerContext);
         Assert.AreEqual <bool>
             (false, ((ControllerBase)devolucionController).ValidateRequest);
     }
 }
Esempio n. 17
0
 public void InsertDevolucionTestThrowsNullReferenceException740()
 {
     using (PexDisposableContext disposables = PexDisposableContext.Create())
     {
         DevolucionController devolucionController;
         JsonResult           jsonResult;
         ControllerContext    s0 = new ControllerContext();
         s0.Controller  = (ControllerBase)null;
         s0.HttpContext = (HttpContextBase)null;
         RequestContext s1 = new RequestContext();
         s1.HttpContext       = (HttpContextBase)null;
         s1.RouteData         = (RouteData)null;
         s0.RequestContext    = s1;
         s0.RouteData         = (RouteData)null;
         devolucionController = new DevolucionController();
         ((Controller)devolucionController).Resolver         = (IDependencyResolver)null;
         ((Controller)devolucionController).ActionInvoker    = (IActionInvoker)null;
         ((Controller)devolucionController).TempDataProvider = (ITempDataProvider)null;
         ((Controller)devolucionController).Url = (UrlHelper)null;
         ((Controller)devolucionController).ViewEngineCollection =
             (ViewEngineCollection)null;
         ((ControllerBase)devolucionController).ControllerContext = s0;
         ((ControllerBase)devolucionController).TempData          = (TempDataDictionary)null;
         ((ControllerBase)devolucionController).ValidateRequest   = false;
         ((ControllerBase)devolucionController).ValueProvider     = (IValueProvider)null;
         ((ControllerBase)devolucionController).ViewData          = (ViewDataDictionary)null;
         disposables.Add((IDisposable)devolucionController);
         jsonResult =
             this.InsertDevolucionTest(devolucionController, (tbDevolucionDetalle)null);
         disposables.Dispose();
     }
 }
Esempio n. 18
0
        public ActionResult BuscarCodigoProductoTest(
            [PexAssumeUnderTest] DevolucionController target,
            int CodFactura,
            string CodProducto
            )
        {
            ActionResult result = target.BuscarCodigoProducto(CodFactura, CodProducto);

            return(result);
            // TODO: agregar aserciones a método DevolucionControllerTest.BuscarCodigoProductoTest(DevolucionController, Int32, String)
        }
Esempio n. 19
0
        public JsonResult AnularDevolucionTest(
            [PexAssumeUnderTest] DevolucionController target,
            int CodDevolucion,
            bool Estado
            )
        {
            JsonResult result = target.AnularDevolucion(CodDevolucion, Estado);

            return(result);
            // TODO: agregar aserciones a método DevolucionControllerTest.AnularDevolucionTest(DevolucionController, Int32, Boolean)
        }
Esempio n. 20
0
 public static DataTable GetIVA(int icompany, int ifather, int ifamily)
 {
     try
     {
         return(DevolucionController.ObtieneCatalogo(icompany, ifather, ifamily));
     }
     catch
     {
         return(null);
     }
 }
Esempio n. 21
0
 public void CreateNotaCreditoTest0140702()
 {
     using (PexDisposableContext disposables = PexDisposableContext.Create())
     {
         RouteData            routeData;
         DevolucionController devolucionController;
         ActionResult         actionResult;
         routeData = new RouteData((RouteBase)null, (IRouteHandler)null);
         ControllerContext s0 = new ControllerContext();
         s0.Controller  = (ControllerBase)null;
         s0.HttpContext = (HttpContextBase)null;
         RequestContext s1 = new RequestContext();
         s1.HttpContext       = (HttpContextBase)null;
         s1.RouteData         = routeData;
         s0.RequestContext    = s1;
         s0.RouteData         = (RouteData)null;
         devolucionController = new DevolucionController();
         ((Controller)devolucionController).Resolver         = (IDependencyResolver)null;
         ((Controller)devolucionController).ActionInvoker    = (IActionInvoker)null;
         ((Controller)devolucionController).TempDataProvider = (ITempDataProvider)null;
         ((Controller)devolucionController).Url = (UrlHelper)null;
         ((Controller)devolucionController).ViewEngineCollection =
             (ViewEngineCollection)null;
         ((ControllerBase)devolucionController).ControllerContext = s0;
         ((ControllerBase)devolucionController).TempData          = (TempDataDictionary)null;
         ((ControllerBase)devolucionController).ValidateRequest   = false;
         ((ControllerBase)devolucionController).ValueProvider     = (IValueProvider)null;
         ((ControllerBase)devolucionController).ViewData          = (ViewDataDictionary)null;
         disposables.Add((IDisposable)devolucionController);
         actionResult =
             this.CreateNotaCreditoTest01(devolucionController, (tbNotaCredito)null);
         disposables.Dispose();
         Assert.IsNotNull((object)devolucionController);
         Assert.IsNotNull(((Controller)devolucionController).AsyncManager);
         Assert.IsNotNull
             (((Controller)devolucionController).AsyncManager.OutstandingOperations);
         Assert.IsNotNull(((Controller)devolucionController).AsyncManager.Parameters);
         Assert.AreEqual <int>
             (45000, ((Controller)devolucionController).AsyncManager.Timeout);
         Assert.IsNull(((Controller)devolucionController).Url);
         Assert.IsNotNull(((ControllerBase)devolucionController).ControllerContext);
         Assert.IsNull
             (((ControllerBase)devolucionController).ControllerContext.Controller);
         Assert.AreEqual <bool>
             (false, ((ControllerBase)devolucionController).ValidateRequest);
     }
 }
Esempio n. 22
0
 public void CreateNotaCreditoTest013502()
 {
     using (PexDisposableContext disposables = PexDisposableContext.Create())
     {
         ViewEngineCollection viewEngineCollection;
         DevolucionController devolucionController;
         ActionResult         actionResult;
         IViewEngine[]        iViewEngines = new IViewEngine[0];
         viewEngineCollection =
             new ViewEngineCollection((IList <IViewEngine>)iViewEngines);
         devolucionController = new DevolucionController();
         ((Controller)devolucionController).Resolver         = (IDependencyResolver)null;
         ((Controller)devolucionController).ActionInvoker    = (IActionInvoker)null;
         ((Controller)devolucionController).TempDataProvider = (ITempDataProvider)null;
         ((Controller)devolucionController).Url = (UrlHelper)null;
         ((Controller)devolucionController).ViewEngineCollection  = viewEngineCollection;
         ((ControllerBase)devolucionController).ControllerContext =
             (ControllerContext)null;
         ((ControllerBase)devolucionController).TempData        = (TempDataDictionary)null;
         ((ControllerBase)devolucionController).ValidateRequest = false;
         ((ControllerBase)devolucionController).ValueProvider   = (IValueProvider)null;
         ((ControllerBase)devolucionController).ViewData        = (ViewDataDictionary)null;
         disposables.Add((IDisposable)devolucionController);
         actionResult =
             this.CreateNotaCreditoTest01(devolucionController, (tbNotaCredito)null);
         disposables.Dispose();
         Assert.IsNotNull((object)devolucionController);
         Assert.IsNotNull(((Controller)devolucionController).AsyncManager);
         Assert.IsNotNull
             (((Controller)devolucionController).AsyncManager.OutstandingOperations);
         Assert.IsNotNull(((Controller)devolucionController).AsyncManager.Parameters);
         Assert.AreEqual <int>
             (45000, ((Controller)devolucionController).AsyncManager.Timeout);
         Assert.IsNull(((Controller)devolucionController).Url);
         Assert.IsNull(((ControllerBase)devolucionController).ControllerContext);
         Assert.AreEqual <bool>
             (false, ((ControllerBase)devolucionController).ValidateRequest);
     }
 }
 public void FiltrarModalProductoTest674()
 {
     using (PexDisposableContext disposables = PexDisposableContext.Create())
     {
         DevolucionController devolucionController;
         JsonResult           jsonResult;
         devolucionController = new DevolucionController();
         ((Controller)devolucionController).Resolver         = (IDependencyResolver)null;
         ((Controller)devolucionController).ActionInvoker    = (IActionInvoker)null;
         ((Controller)devolucionController).TempDataProvider = (ITempDataProvider)null;
         ((Controller)devolucionController).Url = (UrlHelper)null;
         ((Controller)devolucionController).ViewEngineCollection =
             (ViewEngineCollection)null;
         ((ControllerBase)devolucionController).ControllerContext =
             (ControllerContext)null;
         ((ControllerBase)devolucionController).TempData        = (TempDataDictionary)null;
         ((ControllerBase)devolucionController).ValidateRequest = false;
         ((ControllerBase)devolucionController).ValueProvider   = (IValueProvider)null;
         ((ControllerBase)devolucionController).ViewData        = (ViewDataDictionary)null;
         disposables.Add((IDisposable)devolucionController);
         jsonResult = this.FiltrarModalProductoTest(devolucionController, 0);
         disposables.Dispose();
     }
 }
Esempio n. 24
0
 public static DataTable GetCustomerPeriod(int icompany, int ifather, int ifamily)
 {
     return(DevolucionController.ObtieneCatalogo(icompany, ifather, ifamily));
 }
Esempio n. 25
0
 public static DataTable GetProviderStatus(int icompany, int ifather, int ifamily)
 {
     return(DevolucionController.ObtieneCatalogo(icompany, ifather, ifamily));
 }
Esempio n. 26
0
 public static DataTable GetAddresType(int icompany, int ifather, int ifamily)
 {
     return(DevolucionController.ObtieneCatalogo(icompany, ifather, ifamily));
 }