Exemplo n.º 1
0
 public void EstadoFactura_CreateTest1()
 {
     using (PexDisposableContext disposables = PexDisposableContext.Create())
     {
         TempDataDictionary      tempDataDictionary;
         EstadoFacturaController estadoFacturaController;
         ActionResult            actionResult;
         tempDataDictionary      = new TempDataDictionary();
         estadoFacturaController = EstadoFacturaControllerFactory.Create
                                       ((IDependencyResolver)null, (IActionInvoker)null,
                                       (ITempDataProvider)null, (UrlHelper)null, (ViewEngineCollection)null,
                                       (ControllerContext)null, tempDataDictionary,
                                       false, (IValueProvider)null, (ViewDataDictionary)null);
         disposables.Add((IDisposable)estadoFacturaController);
         actionResult =
             this.CreateTest01(estadoFacturaController, (tbEstadoFactura)null);
         disposables.Dispose();
         Assert.IsNotNull((object)actionResult);
         Assert.IsNotNull((object)estadoFacturaController);
         Assert.IsNotNull(((Controller)estadoFacturaController).AsyncManager);
         Assert.IsNotNull
             (((Controller)estadoFacturaController).AsyncManager.OutstandingOperations);
         Assert.IsNotNull
             (((Controller)estadoFacturaController).AsyncManager.Parameters);
         Assert.AreEqual <int>
             (45000, ((Controller)estadoFacturaController).AsyncManager.Timeout);
         Assert.IsNull(((Controller)estadoFacturaController).Url);
         Assert.IsNull(((ControllerBase)estadoFacturaController).ControllerContext);
         Assert.AreEqual <bool>
             (false, ((ControllerBase)estadoFacturaController).ValidateRequest);
     }
 }
Exemplo n.º 2
0
 public void EstadoFactura_CreateTest()
 {
     using (PexDisposableContext disposables = PexDisposableContext.Create())
     {
         RouteData routeData;
         EstadoFacturaController estadoFacturaController;
         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;
         estadoFacturaController = EstadoFacturaControllerFactory.Create
                                       ((IDependencyResolver)null, (IActionInvoker)null,
                                       (ITempDataProvider)null, (UrlHelper)null, (ViewEngineCollection)null,
                                       s0, (TempDataDictionary)null,
                                       false, (IValueProvider)null, (ViewDataDictionary)null);
         disposables.Add((IDisposable)estadoFacturaController);
         actionResult = this.CreateTest(estadoFacturaController);
         disposables.Dispose();
         Assert.IsNotNull((object)actionResult);
         Assert.IsNotNull((object)estadoFacturaController);
         Assert.IsNotNull(((Controller)estadoFacturaController).AsyncManager);
         Assert.IsNotNull
             (((Controller)estadoFacturaController).AsyncManager.OutstandingOperations);
         Assert.IsNotNull
             (((Controller)estadoFacturaController).AsyncManager.Parameters);
         Assert.AreEqual <int>
             (45000, ((Controller)estadoFacturaController).AsyncManager.Timeout);
         Assert.IsNull(((Controller)estadoFacturaController).Url);
         Assert.IsNotNull(((ControllerBase)estadoFacturaController).ControllerContext);
         Assert.IsNull
             (((ControllerBase)estadoFacturaController).ControllerContext.Controller);
         Assert.AreEqual <bool>
             (false, ((ControllerBase)estadoFacturaController).ValidateRequest);
     }
 }