Ejemplo n.º 1
0
 public void SetupTest()
 {
     db = new MockHimzoDb();
     OrdersController = new OrdersController(db.GetDbContext(), db.GetUserManager());
     OrdersController.ControllerContext             = new ControllerContext();
     OrdersController.ControllerContext.HttpContext = new DefaultHttpContext();
     DbContent = db.GetOrders();
 }
Ejemplo n.º 2
0
 public void SetupTest()
 {
     db = new MockHimzoDb();
     ContentsController = new ContentsController(db.GetDbContext(), db.GetUserManager());
     ContentsController.ControllerContext               = new ControllerContext();
     ContentsController.ControllerContext.HttpContext   = new DefaultHttpContext();
     ContentsController.HttpContext.Request.QueryString = new QueryString("?path=profile");
     DbContent = db.GetContents();
 }
Ejemplo n.º 3
0
        public void SetupTest()
        {
            db = new MockHimzoDb();
            var mockLogger = new Mock <ILogger <AuthController> >();

            AuthController = new AuthController(db.GetDbContext(), null, db.GetUserManager(), null, mockLogger.Object);
            AuthController.ControllerContext             = new ControllerContext();
            AuthController.ControllerContext.HttpContext = new DefaultHttpContext();
            DbContent = db.GetUsers();
        }