Beispiel #1
0
        public ActionResult DetailsTest([PexAssumeUnderTest] PagoController target, int?id)
        {
            ActionResult result = target.Details(id);

            return(result);
            // TODO: agregar aserciones a método PagoControllerTest.DetailsTest(PagoController, Nullable`1<Int32>)
        }
Beispiel #2
0
 public void DetailsTest198()
 {
     using (PexDisposableContext disposables = PexDisposableContext.Create())
     {
         PagoController pagoController;
         ActionResult   actionResult;
         pagoController = new PagoController();
         ((Controller)pagoController).Resolver         = (IDependencyResolver)null;
         ((Controller)pagoController).ActionInvoker    = (IActionInvoker)null;
         ((Controller)pagoController).TempDataProvider = (ITempDataProvider)null;
         ((Controller)pagoController).Url = (UrlHelper)null;
         ((Controller)pagoController).ViewEngineCollection  = (ViewEngineCollection)null;
         ((ControllerBase)pagoController).ControllerContext = (ControllerContext)null;
         ((ControllerBase)pagoController).TempData          = (TempDataDictionary)null;
         ((ControllerBase)pagoController).ValidateRequest   = false;
         ((ControllerBase)pagoController).ValueProvider     = (IValueProvider)null;
         ((ControllerBase)pagoController).ViewData          = (ViewDataDictionary)null;
         disposables.Add((IDisposable)pagoController);
         actionResult = this.DetailsTest(pagoController, default(int?));
         disposables.Dispose();
         Assert.IsNotNull((object)pagoController);
         Assert.IsNotNull(((Controller)pagoController).AsyncManager);
         Assert.IsNotNull
             (((Controller)pagoController).AsyncManager.OutstandingOperations);
         Assert.IsNotNull(((Controller)pagoController).AsyncManager.Parameters);
         Assert.AreEqual <int>(45000, ((Controller)pagoController).AsyncManager.Timeout);
         Assert.IsNull(((Controller)pagoController).Url);
         Assert.IsNull(((ControllerBase)pagoController).ControllerContext);
         Assert.AreEqual <bool>(false, ((ControllerBase)pagoController).ValidateRequest);
     }
 }
Beispiel #3
0
        public ActionResult CreateTest01([PexAssumeUnderTest] PagoController target, tbPago tbPago)
        {
            ActionResult result = target.Create(tbPago);

            return(result);
            // TODO: agregar aserciones a método PagoControllerTest.CreateTest01(PagoController, tbPago)
        }
Beispiel #4
0
        public ActionResult DeleteConfirmedTest([PexAssumeUnderTest] PagoController target, int id)
        {
            ActionResult result = target.DeleteConfirmed(id);

            return(result);
            // TODO: agregar aserciones a método PagoControllerTest.DeleteConfirmedTest(PagoController, Int32)
        }
Beispiel #5
0
        public JsonResult BuscarFacturaIdTest([PexAssumeUnderTest] PagoController target, int fId)
        {
            JsonResult result = target.BuscarFacturaId(fId);

            return(result);
            // TODO: agregar aserciones a método PagoControllerTest.BuscarFacturaIdTest(PagoController, Int32)
        }
Beispiel #6
0
        public PagoController ConstructorTest()
        {
            PagoController target = new PagoController();

            return(target);
            // TODO: agregar aserciones a método PagoControllerTest.ConstructorTest()
        }
Beispiel #7
0
        public ActionResult IndexPagoFacturaTest([PexAssumeUnderTest] PagoController target)
        {
            ActionResult result = target.IndexPagoFactura();

            return(result);
            // TODO: agregar aserciones a método PagoControllerTest.IndexPagoFacturaTest(PagoController)
        }
Beispiel #8
0
        public JsonResult GetFacturaListTest([PexAssumeUnderTest] PagoController target, long tbFactura_clte_Id)
        {
            JsonResult result = target.GetFacturaList(tbFactura_clte_Id);

            return(result);
            // TODO: agregar aserciones a método PagoControllerTest.GetFacturaListTest(PagoController, Int64)
        }
Beispiel #9
0
        public JsonResult AnularPagoTest(
            [PexAssumeUnderTest] PagoController target,
            int pago_Id,
            bool PagoAnulado,
            string RazonAnulado
            )
        {
            JsonResult result = target.AnularPago(pago_Id, PagoAnulado, RazonAnulado);

            return(result);
            // TODO: agregar aserciones a método PagoControllerTest.AnularPagoTest(PagoController, Int32, Boolean, String)
        }
 public void CreateTest798()
 {
     using (PexDisposableContext disposables = PexDisposableContext.Create())
     {
         PagoController pagoController;
         ActionResult   actionResult;
         SessionStateTempDataProvider s0 = new SessionStateTempDataProvider();
         pagoController = new PagoController();
         ((Controller)pagoController).Resolver         = (IDependencyResolver)null;
         ((Controller)pagoController).ActionInvoker    = (IActionInvoker)null;
         ((Controller)pagoController).TempDataProvider = (ITempDataProvider)s0;
         ((Controller)pagoController).Url = (UrlHelper)null;
         ((Controller)pagoController).ViewEngineCollection  = (ViewEngineCollection)null;
         ((ControllerBase)pagoController).ControllerContext = (ControllerContext)null;
         ((ControllerBase)pagoController).TempData          = (TempDataDictionary)null;
         ((ControllerBase)pagoController).ValidateRequest   = false;
         ((ControllerBase)pagoController).ValueProvider     = (IValueProvider)null;
         ((ControllerBase)pagoController).ViewData          = (ViewDataDictionary)null;
         disposables.Add((IDisposable)pagoController);
         actionResult = this.CreateTest(pagoController);
         disposables.Dispose();
     }
 }