public void CuentaBanco_CreateTest1()
 {
     using (PexDisposableContext disposables = PexDisposableContext.Create())
     {
         ViewEngineCollection  viewEngineCollection;
         CuentaBancoController cuentaBancoController;
         ActionResult          actionResult;
         IViewEngine[]         iViewEngines = new IViewEngine[0];
         viewEngineCollection =
             new ViewEngineCollection((IList <IViewEngine>)iViewEngines);
         cuentaBancoController = CuentaBancoControllerFactory.Create
                                     ((IDependencyResolver)null, (IActionInvoker)null,
                                     (ITempDataProvider)null, (UrlHelper)null, viewEngineCollection,
                                     (ControllerContext)null, (TempDataDictionary)null,
                                     false, (IValueProvider)null, (ViewDataDictionary)null);
         disposables.Add((IDisposable)cuentaBancoController);
         actionResult = this.CreateTest01(cuentaBancoController, (tbCuentasBanco)null);
         disposables.Dispose();
         Assert.IsNotNull((object)actionResult);
         Assert.IsNotNull((object)cuentaBancoController);
         Assert.IsNotNull(((Controller)cuentaBancoController).AsyncManager);
         Assert.IsNotNull
             (((Controller)cuentaBancoController).AsyncManager.OutstandingOperations);
         Assert.IsNotNull(((Controller)cuentaBancoController).AsyncManager.Parameters);
         Assert.AreEqual <int>
             (45000, ((Controller)cuentaBancoController).AsyncManager.Timeout);
         Assert.IsNull(((Controller)cuentaBancoController).Url);
         Assert.IsNull(((ControllerBase)cuentaBancoController).ControllerContext);
         Assert.AreEqual <bool>
             (false, ((ControllerBase)cuentaBancoController).ValidateRequest);
     }
 }
Ejemplo n.º 2
0
 public void CuentaBanco_DetailsTest()
 {
     using (PexDisposableContext disposables = PexDisposableContext.Create())
     {
         CuentaBancoController cuentaBancoController;
         ActionResult          actionResult;
         cuentaBancoController = CuentaBancoControllerFactory.Create
                                     ((IDependencyResolver)null, (IActionInvoker)null,
                                     (ITempDataProvider)null, (UrlHelper)null, (ViewEngineCollection)null,
                                     (ControllerContext)null, (TempDataDictionary)null,
                                     false, (IValueProvider)null, (ViewDataDictionary)null);
         disposables.Add((IDisposable)cuentaBancoController);
         actionResult = this.DetailsTest(cuentaBancoController, default(short?));
         disposables.Dispose();
         Assert.IsNotNull((object)actionResult);
         Assert.IsNotNull((object)cuentaBancoController);
         Assert.IsNotNull(((Controller)cuentaBancoController).AsyncManager);
         Assert.IsNotNull
             (((Controller)cuentaBancoController).AsyncManager.OutstandingOperations);
         Assert.IsNotNull(((Controller)cuentaBancoController).AsyncManager.Parameters);
         Assert.AreEqual <int>
             (45000, ((Controller)cuentaBancoController).AsyncManager.Timeout);
         Assert.IsNull(((Controller)cuentaBancoController).Url);
         Assert.IsNull(((ControllerBase)cuentaBancoController).ControllerContext);
         Assert.AreEqual <bool>
             (false, ((ControllerBase)cuentaBancoController).ValidateRequest);
     }
 }
Ejemplo n.º 3
0
 public void CuentaBanco_IndexTest()
 {
     using (PexDisposableContext disposables = PexDisposableContext.Create())
     {
         RouteData             routeData;
         CuentaBancoController cuentaBancoController;
         ActionResult          actionResult;
         routeData = new RouteData((RouteBase)null, (IRouteHandler)null);
         ControllerContext s0 = new ControllerContext();
         s0.Controller         = (ControllerBase)null;
         s0.HttpContext        = (HttpContextBase)null;
         s0.RequestContext     = (RequestContext)null;
         s0.RouteData          = routeData;
         cuentaBancoController = CuentaBancoControllerFactory.Create
                                     ((IDependencyResolver)null, (IActionInvoker)null,
                                     (ITempDataProvider)null, (UrlHelper)null, (ViewEngineCollection)null,
                                     s0, (TempDataDictionary)null,
                                     false, (IValueProvider)null, (ViewDataDictionary)null);
         disposables.Add((IDisposable)cuentaBancoController);
         actionResult = this.IndexTest(cuentaBancoController);
         disposables.Dispose();
         Assert.IsNotNull((object)actionResult);
         Assert.IsNotNull((object)cuentaBancoController);
         Assert.IsNotNull(((Controller)cuentaBancoController).AsyncManager);
         Assert.IsNotNull
             (((Controller)cuentaBancoController).AsyncManager.OutstandingOperations);
         Assert.IsNotNull(((Controller)cuentaBancoController).AsyncManager.Parameters);
         Assert.AreEqual <int>
             (45000, ((Controller)cuentaBancoController).AsyncManager.Timeout);
         Assert.IsNull(((Controller)cuentaBancoController).Url);
         Assert.IsNotNull(((ControllerBase)cuentaBancoController).ControllerContext);
         Assert.IsNull(((ControllerBase)cuentaBancoController).ControllerContext.Controller);
         Assert.AreEqual <bool>
             (false, ((ControllerBase)cuentaBancoController).ValidateRequest);
     }
 }